From 9da4fe086b3f7c0c2e310c3b6438ed131fb13ff2 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 5 Dec 2010 09:04:34 +0000 Subject: allow gcc to check the format of args being passed to MsgAlert and GenericLog. Fixed nearly all warnings that arose from this, as well as some preexisting ones (some were actually crashes and/or bugs...) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6522 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DiscIO/Src/FileMonitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DiscIO/Src/FileMonitor.cpp') diff --git a/Source/Core/DiscIO/Src/FileMonitor.cpp b/Source/Core/DiscIO/Src/FileMonitor.cpp index c05bd3f22c..1b3ccb0be8 100644 --- a/Source/Core/DiscIO/Src/FileMonitor.cpp +++ b/Source/Core/DiscIO/Src/FileMonitor.cpp @@ -106,11 +106,11 @@ void CheckFile(std::string File, u64 Size) std::string Str = StringFromFormat("%s kB %s", ThousandSeparate(Size, 7).c_str(), File.c_str()); if (ShowSound(File)) { - NOTICE_LOG(FILEMON, Str.c_str()); + NOTICE_LOG(FILEMON, "%s", Str.c_str()); } else { - WARN_LOG(FILEMON, Str.c_str()); + WARN_LOG(FILEMON, "%s", Str.c_str()); } // Update the current file -- cgit v1.2.3