aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-04-19 13:36:31 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-04-19 13:36:31 +0000
commit74a7305a91f19eebfe5a7151d642dc6f1f68fb7c (patch)
tree71a6b82ce5a426f13cb357eacf07b7d348594174 /sys/kern
parent2cfddaa6ffea271a5c50c4cadb6826a679a743dc (diff)
downloadsrc-74a7305a91f19eebfe5a7151d642dc6f1f68fb7c.tar.gz
src-74a7305a91f19eebfe5a7151d642dc6f1f68fb7c.zip
Fix debugging printf.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=298267
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_rctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_rctl.c b/sys/kern/kern_rctl.c
index 9647090662d6..7f6ca6326d1e 100644
--- a/sys/kern/kern_rctl.c
+++ b/sys/kern/kern_rctl.c
@@ -660,10 +660,11 @@ rctl_enforce(struct proc *p, int resource, uint64_t amount)
if (sleep_ms > rctl_throttle_max)
sleep_ms = rctl_throttle_max;
#if 0
- printf("%s: pid %d (%s), %jd of %jd, will sleep for %ld ms (ratio %ld, available %ld)\n",
+ printf("%s: pid %d (%s), %jd of %jd, will sleep for %ju ms (ratio %ju, available %jd)\n",
__func__, p->p_pid, p->p_comm,
p->p_racct->r_resources[resource],
- rule->rr_amount, sleep_ms, sleep_ratio, available);
+ rule->rr_amount, (uintmax_t)sleep_ms,
+ (uintmax_t)sleep_ratio, (intmax_t)available);
#endif
KASSERT(sleep_ms >= rctl_throttle_min, ("%s: %ju < %d\n",