svn commit: r298267 - head/sys/kern

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Apr 19 13:36:32 UTC 2016


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",


More information about the svn-src-head mailing list