1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-aa,v 1.2 2002/04/01 04:22:59 dmcmahill Exp $
--- src/unix.c.orig Mon Dec 17 11:09:33 2001
+++ src/unix.c
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include <syslog.h>
@@ -462,7 +463,7 @@
log("Memory:\n");
for(n=0,b=0,m=allocs;m;m=m->next) {
- log(" addr=%8x size=%5d id=%s\n",(unsigned)m->ptr,m->size,m->id);
+ log(" addr=%p size=%5d id=%s\n",m->ptr,m->size,m->id);
n++;
b+=m->size;
}
@@ -586,7 +587,7 @@
Timer* ti=timers;
timers=ti->next;
if(evtDebug&EVT_DEBUG_TIMERS)
- log("timer called %x %x\n",(unsigned)ti->func,(unsigned)ti->handle);
+ log("timer called %p %p\n",ti->func,ti->handle);
ti->func(ti->handle);
if(evtDebug&EVT_DEBUG_TIMERS) log("timer completed\n");
free(ti);
|