Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3820)

Unified Diff: chrome/browser/safe_browsing/protocol_parser.cc

Issue 339059: Add compiler-specific "examine printf format" attributes to printfs. (Closed)
Patch Set: cleanups Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/protocol_parser.cc
diff --git a/chrome/browser/safe_browsing/protocol_parser.cc b/chrome/browser/safe_browsing/protocol_parser.cc
index ce8474c62ad06834da0256c172263faaab623faf..c2aa7936e5fdad381e809e259e406fa22c760e5c 100644
--- a/chrome/browser/safe_browsing/protocol_parser.cc
+++ b/chrome/browser/safe_browsing/protocol_parser.cc
@@ -4,6 +4,8 @@
//
// Parse the data returned from the SafeBrowsing v2.1 protocol response.
+#include "chrome/browser/safe_browsing/protocol_parser.h"
+
#include "build/build_config.h"
#if defined(OS_WIN)
@@ -12,8 +14,7 @@
#include <arpa/inet.h>
#endif
-#include "chrome/browser/safe_browsing/protocol_parser.h"
-
+#include "base/format_macros.h"
#include "base/logging.h"
#include "base/string_util.h"
@@ -115,7 +116,7 @@ void SafeBrowsingProtocolParser::FormatGetHash(
DCHECK(request);
// Format the request for GetHash.
- request->append(StringPrintf("%d:%d\n",
+ request->append(StringPrintf("%" PRIuS ":%" PRIuS "\n",
sizeof(SBPrefix),
sizeof(SBPrefix) * prefixes.size()));
for (size_t i = 0; i < prefixes.size(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698