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

Unified Diff: webkit/glue/media/media_resource_loader_bridge_factory.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: webkit/glue/media/media_resource_loader_bridge_factory.cc
diff --git a/webkit/glue/media/media_resource_loader_bridge_factory.cc b/webkit/glue/media/media_resource_loader_bridge_factory.cc
index 03684c8083e326ad4211cbfa4c8697e48090a355..e4e1a6b1b0666a5d3424cc2fe0a8228146951610 100644
--- a/webkit/glue/media/media_resource_loader_bridge_factory.cc
+++ b/webkit/glue/media/media_resource_loader_bridge_factory.cc
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/string_util.h"
#include "webkit/glue/media/media_resource_loader_bridge_factory.h"
+#include "base/format_macros.h"
+#include "base/string_util.h"
+
namespace {
// A constant for an unknown position.
@@ -57,12 +59,12 @@ const std::string MediaResourceLoaderBridgeFactory::GenerateHeaders (
if (first_byte_position > kPositionNotSpecified &&
last_byte_position > kPositionNotSpecified) {
if (first_byte_position <= last_byte_position) {
- header = StringPrintf("Range: bytes=%lld-%lld",
+ header = StringPrintf("Range: bytes=%"PRId64"-%"PRId64,
Mark Mentovai 2009/11/18 20:55:27 spaces.
first_byte_position,
last_byte_position);
}
} else if (first_byte_position > kPositionNotSpecified) {
- header = StringPrintf("Range: bytes=%lld-", first_byte_position);
+ header = StringPrintf("Range: bytes=%"PRId64"-", first_byte_position);
Mark Mentovai 2009/11/18 20:55:27 spaces.
} else if (last_byte_position > kPositionNotSpecified) {
NOTIMPLEMENTED() << "Suffix range not implemented";
}

Powered by Google App Engine
This is Rietveld 408576698