summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/log.h6
-rw-r--r--src/resources/imageset.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index dd1c0f91..6fe9dccd 100644
--- a/src/log.h
+++ b/src/log.h
@@ -61,7 +61,11 @@ class Logger
/**
* Enters a message in the log. The message will be timestamped.
*/
- void log(const char *log_text, ...);
+ void log(const char *log_text, ...)
+#ifdef __GNUC__
+ __attribute__((__format__(__printf__, 2, 3)))
+#endif
+ ;
/**
* Log an error and quit. The error will pop-up in Windows and will be
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp
index 08a6a110..4b6dd592 100644
--- a/src/resources/imageset.cpp
+++ b/src/resources/imageset.cpp
@@ -54,7 +54,7 @@ ImageSet::get(size_type i)
{
if (i >= mImages.size())
{
- logger->log("Warning: Sprite #%i does not exist in this image set", i);
+ logger->log("Warning: No sprite %d in this image set", (int) i);
return NULL;
}
else