Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ktruss Cast register_t to void * when printing with %p.
details: https://anonhg.NetBSD.org/src/rev/eb77a2f99cec
branches: trunk
changeset: 777682:eb77a2f99cec
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Feb 29 23:35:49 2012 +0000
description:
Cast register_t to void * when printing with %p.
diffstat:
usr.bin/ktruss/dump.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 00f39a6f649d -r eb77a2f99cec usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c Wed Feb 29 23:35:10 2012 +0000
+++ b/usr.bin/ktruss/dump.c Wed Feb 29 23:35:49 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dump.c,v 1.39 2012/02/01 05:34:43 dholland Exp $ */
+/* $NetBSD: dump.c,v 1.40 2012/02/29 23:35:49 joerg Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: dump.c,v 1.39 2012/02/01 05:34:43 dholland Exp $");
+__RCSID("$NetBSD: dump.c,v 1.40 2012/02/29 23:35:49 joerg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -112,7 +112,7 @@
void syscallnameprint(int);
void syscallprint(struct ktr_header *);
void sysretprint(struct ktr_header *);
-int wprintf(const char *, ...);
+int wprintf(const char *, ...) __printflike(1, 2);
void *xrealloc(void *, size_t *, size_t);
int
@@ -635,7 +635,7 @@
} else
switch (ktr->ktr_code) {
case SYS_mmap:
- wprintf(" = %p", (long)ret);
+ wprintf(" = %p", (void *)ret);
break;
default:
wprintf(" = %ld", (long)ret);
Home |
Main Index |
Thread Index |
Old Index