summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-21 00:47:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-21 00:47:44 +0300
commitfffbd86a1014ad169ed2d68ea58cdddf346faa14 (patch)
tree713c96fcf7421ca87f638d312e752179281cb8fe /src/logger.h
parent1941b81a5a278f26a5d7e1f91903ab04c92e2cd1 (diff)
downloadmv-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.gz
mv-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.bz2
mv-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.xz
mv-fffbd86a1014ad169ed2d68ea58cdddf346faa14.zip
Add missing checks and non null attributes.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logger.h b/src/logger.h
index da910fd57..e05ab3e67 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -81,7 +81,7 @@ class Logger final
/**
* Enters a message in the log. The message will be timestamped.
*/
- void log(const char *const log_text, ...)
+ void log(const char *const log_text, ...) A_NONNULL(2)
#ifdef __GNUC__
#ifdef __OpenBSD__
@@ -102,7 +102,7 @@ class Logger final
/**
* Enters a message in the log (thread safe).
*/
- void log_r(const char *const log_text, ...)
+ void log_r(const char *const log_text, ...) A_NONNULL(2)
#ifdef __GNUC__
#ifdef __OpenBSD__
__attribute__((__format__(printf, 2, 3)))
@@ -122,7 +122,7 @@ class Logger final
/**
* Enters a message in the log. The message will be timestamped.
*/
- void log1(const char *const log_text);
+ void log1(const char *const log_text) A_NONNULL(2);
/**
* Enters a message in the log. The message will be timestamped.