summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:43:59 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:37 -0700
commit50ef34933ba3e846605d52a96619323e12887959 (patch)
treebb1b0c722700eee128ca15df4764393af4d28bda /common.c
parent0167af41624e8ef86b657d83ece09fe4e12fd6a2 (diff)
downloadxscope-50ef34933ba3e846605d52a96619323e12887959.tar.gz
Clear many compiler & sparse warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
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);
}