From: Richard Smith Date: Tue, 18 Dec 2012 05:49:49 +0000 (+0000) Subject: Don't escape %s in printf usage message; it's not written by printf. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54fc2370f92b4f7183fb457a081d5072e93f5196;p=platform%2Fupstream%2Fllvm.git Don't escape %s in printf usage message; it's not written by printf. llvm-svn: 170413 --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc index b671298..2393e8f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc @@ -94,7 +94,7 @@ static int AppendPointer(char **buff, const char *buff_end, u64 ptr_value) { int VSNPrintf(char *buff, int buff_length, const char *format, va_list args) { static const char *kPrintfFormatsHelp = - "Supported Printf formats: %%(0[0-9]*)?(z|ll)?{d,u,x}; %%p; %%s; %%c\n"; + "Supported Printf formats: %(0[0-9]*)?(z|ll)?{d,u,x}; %p; %s; %c\n"; RAW_CHECK(format); RAW_CHECK(buff_length > 0); const char *buff_end = &buff[buff_length - 1];