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

Unified Diff: sandbox/win/sandbox_poc/pocdll/spyware.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 side-by-side diff with in-line comments
Download patch
Index: sandbox/win/sandbox_poc/pocdll/spyware.cc
diff --git a/sandbox/win/sandbox_poc/pocdll/spyware.cc b/sandbox/win/sandbox_poc/pocdll/spyware.cc
index cd75d4f2412611e03b7bdba35faf3f099d6886e8..cf0bd4177f964d3433466ab6bdb3fbe9bafc2247 100644
--- a/sandbox/win/sandbox_poc/pocdll/spyware.cc
+++ b/sandbox/win/sandbox_poc/pocdll/spyware.cc
@@ -19,7 +19,7 @@ void POCDLL_API TestSpyKeys(HANDLE log) {
fprintf(output, "[GRANTED] successfully registered hotkey\r\n");
UnregisterHotKey(NULL, 1);
} else {
- fprintf(output, "[BLOCKED] Failed to register hotkey. Error = %d\r\n",
+ fprintf(output, "[BLOCKED] Failed to register hotkey. Error = %ld\r\n",
::GetLastError());
}
@@ -63,6 +63,6 @@ void POCDLL_API TestSpyScreen(HANDLE log) {
}
}
- fprintf(output, "[BLOCKED] Read pixel on screen. Error = %d\r\n",
+ fprintf(output, "[BLOCKED] Read pixel on screen. Error = %ld\r\n",
::GetLastError());
}

Powered by Google App Engine
This is Rietveld 408576698