Fix debugging printf.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2cfddaa6ff
commit
74a7305a91
@ -660,10 +660,11 @@ rctl_enforce(struct proc *p, int resource, uint64_t amount)
|
|||||||
if (sleep_ms > rctl_throttle_max)
|
if (sleep_ms > rctl_throttle_max)
|
||||||
sleep_ms = rctl_throttle_max;
|
sleep_ms = rctl_throttle_max;
|
||||||
#if 0
|
#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,
|
__func__, p->p_pid, p->p_comm,
|
||||||
p->p_racct->r_resources[resource],
|
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
|
#endif
|
||||||
|
|
||||||
KASSERT(sleep_ms >= rctl_throttle_min, ("%s: %ju < %d\n",
|
KASSERT(sleep_ms >= rctl_throttle_min, ("%s: %ju < %d\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user