From 493e29bc3df0c6e4507537a580e0b4687705e0b1 Mon Sep 17 00:00:00 2001 From: Joshua Peraza Date: Wed, 28 Feb 2018 11:33:42 -0800 Subject: [PATCH] win: Use correct format specifier This caused an error with clang, but not msvc. At first I thought this might be a discrepancy between the warning levels used, but it appears msvc was okay with this because ints are the same size as longs. Change-Id: I798284fef9aa70b1bfda73308b9babe1779e8f4b Reviewed-on: https://chromium-review.googlesource.com/941723 Reviewed-by: Mark Mentovai Commit-Queue: Joshua Peraza --- handler/win/loader_lock_dll.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/win/loader_lock_dll.cc b/handler/win/loader_lock_dll.cc index cfa098b2..63c145cf 100644 --- a/handler/win/loader_lock_dll.cc +++ b/handler/win/loader_lock_dll.cc @@ -55,7 +55,7 @@ __declspec(noreturn) void LogFatal(const char* file, va_end(va); if (get_last_error) { - fprintf(stderr, ": error %u", last_error); + fprintf(stderr, ": error %lu", last_error); } fputs("\n", stderr);