summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 00:41:45 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 00:41:45 +0000
commit5115474e2e2c773b53fc1e111426e8924deeadb7 (patch)
tree6bdd56cdd544a3b331db7612781ae347739c4e82 /net/tools
parent609990b5b4254601504935427483e3fc22cfde80 (diff)
downloadchromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.zip
chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.gz
chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.bz2
Use %ls instead of %s in wprintf format strings for wchar_t fields.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r--net/tools/crash_cache/crash_cache.cc2
-rw-r--r--net/tools/tld_cleanup/tld_cleanup.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc
index 859cf94..f007feb 100644
--- a/net/tools/crash_cache/crash_cache.cc
+++ b/net/tools/crash_cache/crash_cache.cc
@@ -61,7 +61,7 @@ int RunSlave(RankCrashes action) {
std::wstring exe;
PathService::Get(base::FILE_EXE, &exe);
- std::wstring command = StringPrintf(L"%s %d", exe.c_str(), action);
+ std::wstring command = StringPrintf(L"%ls %d", exe.c_str(), action);
STARTUPINFO startup_info = {0};
startup_info.cb = sizeof(startup_info);
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc
index 1dc5391..cbd1b5b 100644
--- a/net/tools/tld_cleanup/tld_cleanup.cc
+++ b/net/tools/tld_cleanup/tld_cleanup.cc
@@ -161,7 +161,7 @@ NormalizeResult NormalizeFile(const std::wstring& in_filename,
const std::wstring& out_filename) {
std::string data;
if (!file_util::ReadFileToString(in_filename, &data)) {
- fwprintf(stderr, L"Unable to read file %s\n", in_filename.c_str());
+ fwprintf(stderr, L"Unable to read file %ls\n", in_filename.c_str());
// We return success since we've already reported the error.
return kSuccess;
}
@@ -174,7 +174,7 @@ NormalizeResult NormalizeFile(const std::wstring& in_filename,
FILE_ATTRIBUTE_NORMAL,
NULL));
if (outfile == INVALID_HANDLE_VALUE) {
- fwprintf(stderr, L"Unable to write file %s\n", out_filename.c_str());
+ fwprintf(stderr, L"Unable to write file %ls\n", out_filename.c_str());
// We return success since we've already reported the error.
return kSuccess;
}
@@ -260,7 +260,7 @@ int main(int argc, const char* argv[]) {
NormalizeResult result = NormalizeFile(UTF8ToWide(argv[1]),
UTF8ToWide(argv[2]));
if (result != kSuccess) {
- fwprintf(stderr, L"Errors or warnings processing file. See log in %s.",
+ fwprintf(stderr, L"Errors or warnings processing file. See log in %ls.",
kLogFileName);
}