From 50ef34933ba3e846605d52a96619323e12887959 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 6 May 2009 21:43:59 -0700 Subject: Clear many compiler & sparse warnings Signed-off-by: Alan Coopersmith --- common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common.c') diff --git a/common.c b/common.c index ede4371..8d16e6d 100644 --- a/common.c +++ b/common.c @@ -99,7 +99,7 @@ Malloc (long n) { void *p; p = malloc(n); - debug(64,(stderr, "%x = malloc(%d)\n", p, n)); + debug(64,(stderr, "%lx = malloc(%ld)\n", (unsigned long) p, n)); if (p == NULL) panic("no more malloc space"); return(p); @@ -108,7 +108,7 @@ Malloc (long n) void Free(void *p) { - debug(64,(stderr, "%x = free\n", p)); + debug(64,(stderr, "%lx = free\n", (unsigned long) p)); free(p); } -- cgit v1.2.1