Don't escape %s in printf usage message; it's not written by printf.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Dec 2012 05:49:49 +0000 (05:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Dec 2012 05:49:49 +0000 (05:49 +0000)
llvm-svn: 170413

compiler-rt/lib/sanitizer_common/sanitizer_printf.cc

index b671298..2393e8f 100644 (file)
@@ -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];