From 76a4e1dc812e18fca9a2fb3158c4c16d25fdd8e1 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Thu, 8 Mar 2018 22:32:18 +0000 Subject: [PATCH] Fix display of wrong pid from dtrace_sched(4) Fix a comment while here. Sponsored by: Smule, Inc. --- cddl/usr.sbin/dwatch/libexec/sched | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cddl/usr.sbin/dwatch/libexec/sched b/cddl/usr.sbin/dwatch/libexec/sched index c43ad31ea2b..7eab380c329 100644 --- a/cddl/usr.sbin/dwatch/libexec/sched +++ b/cddl/usr.sbin/dwatch/libexec/sched @@ -66,7 +66,7 @@ sched:::enqueue /* probe ID $(( $ID + 2 )) */ sched:::change-pri, sched:::lend-pri /* probe ID $(( $ID + 3 )) */ {${TRACE:+ printf("<$(( $ID + 3 ))>");} - /* details = " -> arg2" */ + /* details = " -> " */ this->details = strjoin(lltostr(this->curprio), strjoin("->", lltostr((uint8_t)arg2))); } @@ -85,7 +85,7 @@ $PROBE /* probe ID $(( $ID + 5 )) */ /* details += " pid -- " */ this->details = strjoin(this->details, this->details == "" ? "" : " "); this->details = strjoin(this->details, strjoin( - strjoin("pid ", lltostr(this->pid_sched)), + strjoin("pid ", lltostr(this->pid)), strjoin(" -- ", this->args))); } EOF