[PATCH] Output %p as unsigned in the bundled snprintf
# HG changeset patch
# User Peter Rosin <peda@xxxxxxxxxxxxxx>
# Date 1259848228 -3600
# Branch HEAD
# Node ID 1f1c206dd2188435f5d4075bce392ca2ad842054
# Parent 6928f522ac488caa40bdf3ea5dfff8971bb2819d
Output %p as unsigned in the bundled snprintf.
diff -r 6928f522ac48 -r 1f1c206dd218 snprintf.c
--- a/snprintf.c Sat Nov 14 14:31:35 2009 -0800
+++ b/snprintf.c Thu Dec 03 14:50:28 2009 +0100
@@ -340,6 +340,7 @@
fmtstr (buffer, &currlen, maxlen, strvalue, flags, min, max);
break;
case 'p':
+ flags |= DP_F_UNSIGNED;
strvalue = va_arg (args, void *);
fmtint (buffer, &currlen, maxlen, (long) strvalue, 16, min, max, flags);
break;