Commit 8b9396d3 authored by George Burgess IV's avatar George Burgess IV Committed by Commit Bot

browser: fix a format string

The variable here is an `int64_t`. On arm, this should be `%lld`. PRId64
solves these things.

Bug: 1058218
Change-Id: Id06c379bd3af9498ea8b5e0fb94c2c594d4be1d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095942Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748793}
parent 4b537624
...@@ -209,7 +209,8 @@ class SlowDownloadInterceptor { ...@@ -209,7 +209,8 @@ class SlowDownloadInterceptor {
"Cache-Control: max-age=0\n"; "Cache-Control: max-age=0\n";
headers += base::StringPrintf("Content-type: %s\n", mime_type.c_str()); headers += base::StringPrintf("Content-type: %s\n", mime_type.c_str());
if (content_length >= 0) { if (content_length >= 0) {
headers += base::StringPrintf("Content-Length: %ld\n", content_length); headers +=
base::StringPrintf("Content-Length: %" PRId64 "\n", content_length);
head->content_length = content_length; head->content_length = content_length;
} }
head->headers = base::MakeRefCounted<net::HttpResponseHeaders>( head->headers = base::MakeRefCounted<net::HttpResponseHeaders>(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment