aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-04 18:59:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-04 18:59:05 +0000
commit3dcd2b82c4095e34342c8d0778d45d547c23b06d (patch)
treeda4bf9cc899604f034776bff1268e579640a70e6 /lib/memdebug.c
parentc0f3e324479c6c0e66f0f45c43429041f5c5d34d (diff)
downloadgnurl-3dcd2b82c4095e34342c8d0778d45d547c23b06d.tar.gz
gnurl-3dcd2b82c4095e34342c8d0778d45d547c23b06d.tar.bz2
gnurl-3dcd2b82c4095e34342c8d0778d45d547c23b06d.zip
fix print formatting string directives
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index 7742d5e1c..98117130d 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -167,7 +167,7 @@ void *curl_docalloc(size_t wanted_elements, size_t wanted_size,
}
if(logfile && source)
- fprintf(logfile, "MEM %s:%d calloc(%u,%u) = %p\n",
+ fprintf(logfile, "MEM %s:%d calloc(%zu,%zu) = %p\n",
source, line, wanted_elements, wanted_size, mem ? mem->mem : 0);
return (mem ? mem->mem : NULL);
}
@@ -189,7 +189,7 @@ char *curl_dostrdup(const char *str, int line, const char *source)
memcpy(mem, str, len);
if(logfile)
- fprintf(logfile, "MEM %s:%d strdup(%p) (%zd) = %p\n",
+ fprintf(logfile, "MEM %s:%d strdup(%p) (%zu) = %p\n",
source, line, str, len, mem);
return mem;
@@ -212,7 +212,7 @@ void *curl_dorealloc(void *ptr, size_t wantedsize,
mem=(struct memdebug *)(Curl_crealloc)(mem, size);
if(logfile)
- fprintf(logfile, "MEM %s:%d realloc(%p, %zd) = %p\n",
+ fprintf(logfile, "MEM %s:%d realloc(%p, %zu) = %p\n",
source, line, ptr, wantedsize, mem?mem->mem:NULL);
if(mem) {