From: Daniel Stenberg Date: Thu, 30 Jun 2005 13:30:23 +0000 (+0000) Subject: use %p to printf pointers since %x doesn't work properly on tru64 for this X-Git-Tag: upstream/7.37.1~11055 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=701de67b7930a4e4953dd82095c141beda917b48;p=platform%2Fupstream%2Fcurl.git use %p to printf pointers since %x doesn't work properly on tru64 for this (and besides, we should be using the same %-code for all pointers) --- diff --git a/lib/memdebug.c b/lib/memdebug.c index d56c637..2b6c55c 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -201,7 +201,7 @@ void *curl_dorealloc(void *ptr, size_t wantedsize, mem=(struct memdebug *)(Curl_crealloc)(mem, size); if(logfile) - fprintf(logfile, "MEM %s:%d realloc(0x%x, %zd) = %p\n", + fprintf(logfile, "MEM %s:%d realloc(%p, %zd) = %p\n", source, line, ptr, wantedsize, mem?mem->mem:NULL); if(mem) {