summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-05 19:22:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-05 19:22:24 +0000
commit480d1706d59e52bc1732a36d9e707e5f78efc705 (patch)
treef2b93dd854adb37feb4800d2748078c8ee9fde6b /sys/kern/subr_prf.c
parentef3f8347e9f931903b5b1a60c38a4f0d6028828b (diff)
use %ll instead of %q
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index cf2b0999813..6d24ef3e021 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.33 2001/06/27 04:49:46 art Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.34 2001/09/05 19:22:23 deraadt Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -822,11 +822,11 @@ reswitch: switch (ch) {
_uquad = va_arg(ap, u_int);
b = va_arg(ap, char *);
if (*b == 8)
- sprintf(buf, "%qo", _uquad);
+ sprintf(buf, "%llo", _uquad);
else if (*b == 10)
- sprintf(buf, "%qd", _uquad);
+ sprintf(buf, "%lld", _uquad);
else if (*b == 16)
- sprintf(buf, "%qx", _uquad);
+ sprintf(buf, "%llx", _uquad);
else
break;
b++;