Author: trasz Date: Tue Apr 19 13:36:31 2016 New Revision: 298267 URL: https://svnweb.freebsd.org/changeset/base/298267
Log: Fix debugging printf. MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/kern_rctl.c Modified: head/sys/kern/kern_rctl.c ============================================================================== --- head/sys/kern/kern_rctl.c Tue Apr 19 12:20:28 2016 (r298266) +++ head/sys/kern/kern_rctl.c Tue Apr 19 13:36:31 2016 (r298267) @@ -660,10 +660,11 @@ rctl_enforce(struct proc *p, int resourc 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", _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"