summaryrefslogtreecommitdiff
path: root/sys/kern
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
parentef3f8347e9f931903b5b1a60c38a4f0d6028828b (diff)
use %ll instead of %q
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_prf.c8
-rw-r--r--sys/kern/vfs_lockf.c6
2 files changed, 7 insertions, 7 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++;
diff --git a/sys/kern/vfs_lockf.c b/sys/kern/vfs_lockf.c
index 86c4ceeb01b..ad58b050733 100644
--- a/sys/kern/vfs_lockf.c
+++ b/sys/kern/vfs_lockf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_lockf.c,v 1.4 2001/07/28 17:03:50 gluk Exp $ */
+/* $OpenBSD: vfs_lockf.c,v 1.5 2001/09/05 19:22:23 deraadt Exp $ */
/* $NetBSD: vfs_lockf.c,v 1.7 1996/02/04 02:18:21 christos Exp $ */
/*
@@ -712,7 +712,7 @@ lf_print(tag, lock)
printf("proc %d", ((struct proc *)(lock->lf_id))->p_pid);
else
printf("id %p", lock->lf_id);
- printf(" %s, start %qx, end %qx",
+ printf(" %s, start %llx, end %llx",
lock->lf_type == F_RDLCK ? "shared" :
lock->lf_type == F_WRLCK ? "exclusive" :
lock->lf_type == F_UNLCK ? "unlock" :
@@ -740,7 +740,7 @@ lf_printlist(tag, lock)
printf("proc %d", ((struct proc*)(lf->lf_id))->p_pid);
else
printf("id %p", lf->lf_id);
- printf(" %s, start %qx, end %qx",
+ printf(" %s, start %llx, end %llx",
lf->lf_type == F_RDLCK ? "shared" :
lf->lf_type == F_WRLCK ? "exclusive" :
lf->lf_type == F_UNLCK ? "unlock" :