Merge r10071 (VALGRIND_INTERNAL_PRINTF fix) from the DARWIN branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10072
This commit is contained in:
Nicholas Nethercote 2009-05-21 04:10:38 +00:00
parent 8c819736dc
commit e2623cfad8

View File

@ -56,10 +56,9 @@ typedef
// sim'd CPU. Must be a function rather than macros so that va_list can
// be used.
int VALGRIND_INTERNAL_PRINTF(char *format, ...);
__attribute__((format(__printf__, 1, 2)))
__attribute__((weak))
int VALGRIND_INTERNAL_PRINTF(char *format, ...)
static int VALGRIND_INTERNAL_PRINTF(const char *format, ...)
__attribute__((format(__printf__, 1, 2), __unused__));
static int VALGRIND_INTERNAL_PRINTF(const char *format, ...)
{
unsigned long _qzz_res = 0;
va_list vargs;