summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2004-04-10 11:08:16 +0000
committermux <mux@FreeBSD.org>2004-04-10 11:08:16 +0000
commit74cb325f5e515443d84da3371f8da283a5b8aaa9 (patch)
tree63bdf99317a9463eb88b2653af23819b81ef38da
parent2446732eb08a61f7b9b527c1fcc3352fc1a3ee24 (diff)
downloadFreeBSD-src-74cb325f5e515443d84da3371f8da283a5b8aaa9.zip
FreeBSD-src-74cb325f5e515443d84da3371f8da283a5b8aaa9.tar.gz
Remove a comment that complains about the lack of %qd, to justify
truncating a rlim_t to a long. We have %qd since some time now. However, the correct format to use here is %jd and a cast to intmax_t, so do this.
-rw-r--r--sys/kern/kern_resource.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index bc7c9a0..b16701c 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -1045,9 +1045,8 @@ uifree(uip)
LIST_REMOVE(uip, ui_hash);
mtx_unlock(&uihashtbl_mtx);
if (uip->ui_sbsize != 0)
- /* XXX no %qd in kernel. Truncate. */
- printf("freeing uidinfo: uid = %d, sbsize = %ld\n",
- uip->ui_uid, (long)uip->ui_sbsize);
+ printf("freeing uidinfo: uid = %d, sbsize = %jd\n",
+ uip->ui_uid, (intmax_t)uip->ui_sbsize);
if (uip->ui_proccnt != 0)
printf("freeing uidinfo: uid = %d, proccnt = %ld\n",
uip->ui_uid, uip->ui_proccnt);
OpenPOWER on IntegriCloud