aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2018-03-08 22:32:18 +0000
committerDevin Teske <dteske@FreeBSD.org>2018-03-08 22:32:18 +0000
commit76a4e1dc812e18fca9a2fb3158c4c16d25fdd8e1 (patch)
tree545d2d8b4c0a1c3d4f05bcf9e010264e1c5ec108 /cddl/usr.sbin
parent23fda0ad66861fd8cc95a98d7440cd41d3817e23 (diff)
downloadsrc-76a4e1dc812e18fca9a2fb3158c4c16d25fdd8e1.tar.gz
src-76a4e1dc812e18fca9a2fb3158c4c16d25fdd8e1.zip
Fix display of wrong pid from dtrace_sched(4)
Fix a comment while here. Sponsored by: Smule, Inc.
Notes
Notes: svn path=/head/; revision=330672
Diffstat (limited to 'cddl/usr.sbin')
-rw-r--r--cddl/usr.sbin/dwatch/libexec/sched4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/usr.sbin/dwatch/libexec/sched b/cddl/usr.sbin/dwatch/libexec/sched
index c43ad31ea2b7..7eab380c329c 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 = "<curprio> -> arg2" */
+ /* details = "<curprio> -> <arg2>" */
this->details = strjoin(lltostr(this->curprio),
strjoin("->", lltostr((uint8_t)arg2)));
}
@@ -85,7 +85,7 @@ $PROBE /* probe ID $(( $ID + 5 )) */
/* details += " pid <pid> -- <proc args of 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