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

Unified Diff: sync/engine/model_type_worker.cc

Issue 1372153002: Detecting and fixing stringprintf.h format bugs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate #if defined blocks. Created 5 years, 3 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 | « mojo/fetcher/network_fetcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/model_type_worker.cc
diff --git a/sync/engine/model_type_worker.cc b/sync/engine/model_type_worker.cc
index 7e67dc87278410dff83e7e83bfd1e31c4c47877e..2ffb33d38d4c1b742def0e4f3d8b33f23bcb3f59 100644
--- a/sync/engine/model_type_worker.cc
+++ b/sync/engine/model_type_worker.cc
@@ -178,9 +178,9 @@ SyncerError ModelTypeWorker::ProcessGetUpdatesResponse(
}
DVLOG(1) << ModelTypeToString(type_) << ": "
- << base::StringPrintf(
- "Delivering %zd applicable and %zd pending updates.",
- response_datas.size(), pending_updates.size());
+ << base::StringPrintf("Delivering %" PRIuS " applicable and %" PRIuS
+ " pending updates.",
+ response_datas.size(), pending_updates.size());
// Forward these updates to the model thread so it can do the rest.
model_type_processor_->OnUpdateReceived(data_type_state_, response_datas,
@@ -411,9 +411,9 @@ void ModelTypeWorker::OnCryptographerUpdated() {
if (new_encryption_key || response_datas.size() > 0) {
DVLOG(1) << ModelTypeToString(type_) << ": "
- << base::StringPrintf(
- "Delivering encryption key and %zd decrypted updates.",
- response_datas.size());
+ << base::StringPrintf("Delivering encryption key and %" PRIuS
+ " decrypted updates.",
+ response_datas.size());
model_type_processor_->OnUpdateReceived(data_type_state_, response_datas,
UpdateResponseDataList());
}
« no previous file with comments | « mojo/fetcher/network_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698