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

Unified Diff: tools/android/file_poller/file_poller.cc

Issue 1551313002: Enable -Wformat in linux, android, chromeos, cast builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 months 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
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | tools/android/memconsumer/memconsumer_hook.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/file_poller/file_poller.cc
diff --git a/tools/android/file_poller/file_poller.cc b/tools/android/file_poller/file_poller.cc
index f7b6d584c23a2defb003ff50610961c45939462a..448e229aaf4314970bdfe750438698e77b615dde 100644
--- a/tools/android/file_poller/file_poller.cc
+++ b/tools/android/file_poller/file_poller.cc
@@ -88,7 +88,7 @@ void acquire_sample(int fd, const Context& context) {
struct timeval tv;
gettimeofday(&tv, NULL);
char buffer[1024];
- int n = snprintf(buffer, sizeof(buffer), "%d.%06d ", tv.tv_sec, tv.tv_usec);
+ int n = snprintf(buffer, sizeof(buffer), "%ld.%06ld ", tv.tv_sec, tv.tv_usec);
safe_write(fd, buffer, n);
for (int i = 0; i < context.nb_files; ++i)
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | tools/android/memconsumer/memconsumer_hook.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698