Merge patch from Jeremy Fitzhardinge:
14-sprintf
Update to core VG_(printf)/sprintf/vprintf. They've been modified to
return the number of characters they generated (either printed, put
into the buffer, or sent). Also adds a new %y format, which takes an
Addr argument and looks up a symbol. It takes a '(' flag (ie: "%(y")
which surrounds the symbol in parens if it could be found.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1253 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/vg_skin.h b/include/vg_skin.h
index f472c3d..b87f477 100644
--- a/include/vg_skin.h
+++ b/include/vg_skin.h
@@ -281,10 +281,10 @@
* --logfile-fd=N argument, which defaults to 2 (stderr). Hence no
* need for VG_(fprintf)().
*/
-extern void VG_(printf) ( const char *format, ... );
+extern UInt VG_(printf) ( const char *format, ... );
/* too noisy ... __attribute__ ((format (printf, 1, 2))) ; */
-extern void VG_(sprintf) ( Char* buf, Char *format, ... );
-extern void VG_(vprintf) ( void(*send)(Char),
+extern UInt VG_(sprintf) ( Char* buf, Char *format, ... );
+extern UInt VG_(vprintf) ( void(*send)(Char),
const Char *format, va_list vargs );
extern Int VG_(rename) ( Char* old_name, Char* new_name );