aboutsummaryrefslogtreecommitdiff
path: root/tecmem.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-07-15 15:03:18 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-07-15 15:03:18 +0200
commit1c38f82dddac6eaf41d27649bdf50057a1bb543b (patch)
treef46a06c2f4064d5c6947a9afdbbb2a02a8490004 /tecmem.c
parentf27b61a79ace02f2a89bac9ed55e3879b98c30ad (diff)
downloadvideoteco-fork-1c38f82dddac6eaf41d27649bdf50057a1bb543b.tar.gz
fixed pointer formatting on systems where sizeof(int) != sizeof(void*)
this avoids most of the remaining compiler warnings
Diffstat (limited to 'tecmem.c')
-rw-r--r--tecmem.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tecmem.c b/tecmem.c
index 708a946..71b595e 100644
--- a/tecmem.c
+++ b/tecmem.c
@@ -227,8 +227,8 @@ register int i;
mp = (struct memblock *)( addr - sizeof(struct memblock) );
if(mp->type != type){
- printf("\nTEC_RELEASE: TYPE Mismatch: Supplied %d Stored %d addr 0x%x\n",
- type,mp->type,(unsigned int)addr);
+ printf("\nTEC_RELEASE: TYPE Mismatch: Supplied %d Stored %d addr %p\n",
+ type, mp->type, addr);
#ifdef UNIX
kill(getpid(),SIGQUIT);
#endif
@@ -278,9 +278,8 @@ register int i;
mp = (struct memblock *)( addr - sizeof(struct memblock) );
if(mp->type != type){
- printf(
- "\nTYPE Mismatch: Supplied %d Stored %d addr %x '%s'\n",
- type,mp->type,(unsigned int)addr,message);
+ printf("\nTYPE Mismatch: Supplied %d Stored %d addr %p '%s'\n",
+ type, mp->type, addr, message);
exit(1);
}/* End IF */