summaryrefslogtreecommitdiff
path: root/lib/libpthread/debuglog.c
diff options
context:
space:
mode:
authornathanw <nathanw@NetBSD.org>2003-01-27 20:54:26 +0000
committernathanw <nathanw@NetBSD.org>2003-01-27 20:54:26 +0000
commitee45767b84cafffc2c2c8e7aa559789f98e07f93 (patch)
treea679ed2f47a437481a92ee6d9fdf8f34f457245c /lib/libpthread/debuglog.c
parent01ca174f626e9120bf98e4f959a6f29b71e548ad (diff)
printf format fixes.
Diffstat (limited to 'lib/libpthread/debuglog.c')
-rw-r--r--lib/libpthread/debuglog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/debuglog.c b/lib/libpthread/debuglog.c
index 91165f23e28..d03ea65c920 100644
--- a/lib/libpthread/debuglog.c
+++ b/lib/libpthread/debuglog.c
@@ -1,4 +1,4 @@
-/* $NetBSD: debuglog.c,v 1.2 2003/01/18 10:34:14 thorpej Exp $ */
+/* $NetBSD: debuglog.c,v 1.3 2003/01/27 20:54:26 nathanw Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -111,8 +111,8 @@ pthread__debuglog_rawdump(void)
printf("Debug log raw dump\n");
printf("Magic: %06x\n", debugbuf->msg_magic);
- printf("Size: %06lx\n", debugbuf->msg_bufs);
- printf("Read start: %ld Write start: %ld\n\n",
+ printf("Size: %06llx\n", (long long)debugbuf->msg_bufs);
+ printf("Read start: %d Write start: %d\n\n",
debugbuf->msg_bufr, debugbuf->msg_bufw);
fwrite(&debugbuf->msg_bufc[0], debugbuf->msg_bufs, 1, stdout);