summaryrefslogtreecommitdiff
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2007-11-06 10:22:30 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2007-11-06 10:22:30 +0000
commitffa0ca8c090934f01ce0b62dbd1d818745a739aa (patch)
treed3605227e20cc1c217e4e7cbb65744fae463aa7b /bin/ps/print.c
parenta14390fe9e9ae5805f69dc9a0d6c2455744d8234 (diff)
fix format string
ok ray@ gilles@
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 428ec7807fc..05e09a3e72f 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print.c,v 1.42 2006/11/29 12:34:19 miod Exp $ */
+/* $OpenBSD: print.c,v 1.43 2007/11/06 10:22:29 chl Exp $ */
/* $NetBSD: print.c,v 1.27 1995/09/29 21:58:12 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#else
-static char rcsid[] = "$OpenBSD: print.c,v 1.42 2006/11/29 12:34:19 miod Exp $";
+static char rcsid[] = "$OpenBSD: print.c,v 1.43 2007/11/06 10:22:29 chl Exp $";
#endif
#endif /* not lint */
@@ -269,7 +269,7 @@ state(const struct kinfo_proc2 *kp, VARENT *ve)
if (state == 'R' && ncpu && kp->p_cpuid != KI_NOCPU) {
char pbuf[16];
- snprintf(pbuf, sizeof pbuf, "/%d", kp->p_cpuid);
+ snprintf(pbuf, sizeof pbuf, "/%llu", kp->p_cpuid);
*++cp = '\0';
strlcat(buf, pbuf, sizeof buf);
cp = buf + strlen(buf);