aboutsummaryrefslogtreecommitdiff
path: root/tecmem.c
diff options
context:
space:
mode:
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 */