summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/malloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c
index 1417bfbec..859b58b5e 100644
--- a/src/common/malloc.c
+++ b/src/common/malloc.c
@@ -575,8 +575,8 @@ static void memmgr_final (void)
{
#ifdef LOG_MEMMGR
sprintf (buf,
- "%04d : %s line %d size %d\n", ++count,
- head->file, head->line, head->size);
+ "%04d : %s line %d size %lu\n", ++count,
+ head->file, head->line, (unsigned long)head->size);
memmgr_log (buf);
#endif
// get block pointer and free it [celest]
@@ -623,8 +623,8 @@ static void memmgr_final (void)
large2 = large->next;
#ifdef LOG_MEMMGR
sprintf (buf,
- "%04d : %s line %d size %d\n", ++count,
- large->unit_head.file, large->unit_head.line, large->unit_head.size);
+ "%04d : %s line %d size %lu\n", ++count,
+ large->unit_head.file, large->unit_head.line, (unsigned long)large->unit_head.size);
memmgr_log (buf);
#endif
FREE(large,file,line,func);