More printf format size tweaks.
This commit is contained in:
parent
4a9ac109f0
commit
3ca7487c30
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: debuglog.c,v 1.3 2003/01/27 20:54:26 nathanw Exp $ */
|
/* $NetBSD: debuglog.c,v 1.4 2003/06/25 23:26:00 nathanw Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||||
@ -112,8 +112,8 @@ pthread__debuglog_rawdump(void)
|
|||||||
printf("Debug log raw dump\n");
|
printf("Debug log raw dump\n");
|
||||||
printf("Magic: %06x\n", debugbuf->msg_magic);
|
printf("Magic: %06x\n", debugbuf->msg_magic);
|
||||||
printf("Size: %06llx\n", (long long)debugbuf->msg_bufs);
|
printf("Size: %06llx\n", (long long)debugbuf->msg_bufs);
|
||||||
printf("Read start: %d Write start: %d\n\n",
|
printf("Read start: %ld Write start: %ld\n\n",
|
||||||
debugbuf->msg_bufr, debugbuf->msg_bufw);
|
(long)debugbuf->msg_bufr, (long)debugbuf->msg_bufw);
|
||||||
|
|
||||||
fwrite(&debugbuf->msg_bufc[0], debugbuf->msg_bufs, 1, stdout);
|
fwrite(&debugbuf->msg_bufc[0], debugbuf->msg_bufs, 1, stdout);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user