From 994b7de568f3231ba7e01cb8b828f8b246960314 Mon Sep 17 00:00:00 2001 From: Oliver Henshaw Date: Mon, 27 Jul 2015 10:08:00 +0200 Subject: [PATCH] Bug 1186126 - Note incompatibility with NSPR printf-like functions. r=nfroyd printf-like functions --- mfbt/IntegerPrintfMacros.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mfbt/IntegerPrintfMacros.h b/mfbt/IntegerPrintfMacros.h index f1fd300ac0f..c534a0ba2c3 100644 --- a/mfbt/IntegerPrintfMacros.h +++ b/mfbt/IntegerPrintfMacros.h @@ -9,6 +9,12 @@ #ifndef mozilla_IntegerPrintfMacros_h_ #define mozilla_IntegerPrintfMacros_h_ +/* + * These macros should not be used with the NSPR printf-like functions or their + * users, e.g. mozilla/Logging.h. If you need to use NSPR's facilities, see the + * comment on supported formats at the top of nsprpub/pr/include/prprf.h. + */ + /* * scanf is a footgun: if the input number exceeds the bounds of the target * type, behavior is undefined (in the compiler sense: that is, this code