aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-04-23 09:08:21 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-04-23 09:08:21 +0000
commitf7679463c672a6641ef9f17e51f578f0d8817c6b (patch)
tree2e83cf28a1960c5462068398047e24fddf42c462
parent440ee329b88ae30b219d8f155a99928188ba11d2 (diff)
downloadnewlib-cygwin-64bit-branch.zip
newlib-cygwin-64bit-branch.tar.gz
newlib-cygwin-64bit-branch.tar.bz2
* malloc_wrapper.cc: Throughout fix format specifiers in malloc_printf.github/cygwin-64bit-branchcygwin-64bit-branch
-rw-r--r--winsup/cygwin/ChangeLog.64bit4
-rw-r--r--winsup/cygwin/malloc_wrapper.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog.64bit b/winsup/cygwin/ChangeLog.64bit
index 675cc58..4b4f50a 100644
--- a/winsup/cygwin/ChangeLog.64bit
+++ b/winsup/cygwin/ChangeLog.64bit
@@ -1,5 +1,9 @@
2013-04-23 Corinna Vinschen <corinna@vinschen.de>
+ * malloc_wrapper.cc: Throughout fix format specifiers in malloc_printf.
+
+2013-04-23 Corinna Vinschen <corinna@vinschen.de>
+
* Remove ptmalloc3 once and for all.
2013-04-21 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
diff --git a/winsup/cygwin/malloc_wrapper.cc b/winsup/cygwin/malloc_wrapper.cc
index 2adacba..c527158 100644
--- a/winsup/cygwin/malloc_wrapper.cc
+++ b/winsup/cygwin/malloc_wrapper.cc
@@ -61,7 +61,7 @@ malloc (size_t size)
res = dlmalloc (size);
__malloc_unlock ();
}
- malloc_printf ("(%d) = %x, called by %p", size, res, __builtin_return_address (0));
+ malloc_printf ("(%ld) = %p, called by %p", size, res, __builtin_return_address (0));
return res;
}
@@ -77,7 +77,7 @@ realloc (void *p, size_t size)
res = dlrealloc (p, size);
__malloc_unlock ();
}
- malloc_printf ("(%x, %d) = %x, called by %x", p, size, res, __builtin_return_address (0));
+ malloc_printf ("(%p, %ld) = %p, called by %p", p, size, res, __builtin_return_address (0));
return res;
}
@@ -104,7 +104,7 @@ calloc (size_t nmemb, size_t size)
res = dlcalloc (nmemb, size);
__malloc_unlock ();
}
- malloc_printf ("(%d, %d) = %x, called by %x", nmemb, size, res, __builtin_return_address (0));
+ malloc_printf ("(%ld, %ld) = %p, called by %p", nmemb, size, res, __builtin_return_address (0));
return res;
}