diff options
author | trasz <trasz@FreeBSD.org> | 2016-04-19 13:36:31 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-04-19 13:36:31 +0000 |
commit | 8298725669afbbaa4b673e59732cd959ae43b4ac (patch) | |
tree | 71a6b82ce5a426f13cb357eacf07b7d348594174 /sys/kern | |
parent | b69824cf4d1c0b034154fdf0039f21761d27311f (diff) | |
download | FreeBSD-src-8298725669afbbaa4b673e59732cd959ae43b4ac.zip FreeBSD-src-8298725669afbbaa4b673e59732cd959ae43b4ac.tar.gz |
Fix debugging printf.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_rctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_rctl.c b/sys/kern/kern_rctl.c index 9647090..7f6ca63 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", |