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

Side by Side Diff: net/tools/dump_cache/upgrade_win.cc

Issue 543923002: win/clang: Fix all remaining -Wformat warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/tools/dump_cache/upgrade_win.h" 5 #include "net/tools/dump_cache/upgrade_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 key, reinterpret_cast<disk_cache::Entry**>(&entry_), 394 key, reinterpret_cast<disk_cache::Entry**>(&entry_),
395 base::Bind(&MasterSM::DoCreateEntryComplete, base::Unretained(this))); 395 base::Bind(&MasterSM::DoCreateEntryComplete, base::Unretained(this)));
396 396
397 if (rv != net::ERR_IO_PENDING) 397 if (rv != net::ERR_IO_PENDING)
398 DoCreateEntryComplete(rv); 398 DoCreateEntryComplete(rv);
399 } 399 }
400 400
401 void MasterSM::DoCreateEntryComplete(int result) { 401 void MasterSM::DoCreateEntryComplete(int result) {
402 std::string key(input_->buffer); 402 std::string key(input_->buffer);
403 if (result != net::OK) { 403 if (result != net::OK) {
404 printf("Skipping entry \"%s\": %d\n", key.c_str(), GetLastError()); 404 printf("Skipping entry \"%s\": %ld\n", key.c_str(), GetLastError());
scottmg 2014/09/05 01:31:24 oh, i guess clang doesn't care... alrighty
405 return SendGetPrevEntry(); 405 return SendGetPrevEntry();
406 } 406 }
407 407
408 if (key.size() >= 64) { 408 if (key.size() >= 64) {
409 key[60] = '.'; 409 key[60] = '.';
410 key[61] = '.'; 410 key[61] = '.';
411 key[62] = '.'; 411 key[62] = '.';
412 key[63] = '\0'; 412 key[63] = '\0';
413 } 413 }
414 DEBUGMSG("Entry \"%s\" created\n", key.c_str()); 414 DEBUGMSG("Entry \"%s\" created\n", key.c_str());
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 918
919 SlaveSM slave(input_path, pipe); 919 SlaveSM slave(input_path, pipe);
920 if (!slave.DoInit()) { 920 if (!slave.DoInit()) {
921 printf("Unable to talk with the main process\n"); 921 printf("Unable to talk with the main process\n");
922 return -1; 922 return -1;
923 } 923 }
924 924
925 loop.Run(); 925 loop.Run();
926 return 0; 926 return 0;
927 } 927 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698