[llvm-commits] [compiler-rt] r170413 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
Richard Smith
richard-llvm at metafoo.co.uk
Mon Dec 17 21:49:49 PST 2012
Author: rsmith
Date: Mon Dec 17 23:49:49 2012
New Revision: 170413
URL: http://llvm.org/viewvc/llvm-project?rev=170413&view=rev
Log:
Don't escape %s in printf usage message; it's not written by printf.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc?rev=170413&r1=170412&r2=170413&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc Mon Dec 17 23:49:49 2012
@@ -94,7 +94,7 @@
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];
More information about the llvm-commits
mailing list