aboutsummaryrefslogtreecommitdiffstats
path: root/api/logger.h
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-14 13:04:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:51:00 +0100
commit78b7a01eb39bde51cc6b9515ebfe781f2657574c (patch)
tree90b4dc911033bb1c329968aa9617b298cefef531 /api/logger.h
parentapi: implement driver version extraction from .inf file (diff)
downloadwintun-78b7a01eb39bde51cc6b9515ebfe781f2657574c.tar.xz
wintun-78b7a01eb39bde51cc6b9515ebfe781f2657574c.zip
api: simplify logger macros names
WINTUN_LOGGER_... => LOGGER_... => LOG_... Those macros are internal, so they don/t need to start with WINTUN_... Replacing the noun LOGGER_... with the verb LOG_... makes the code more natural to read now. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/logger.h')
-rw-r--r--api/logger.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/logger.h b/api/logger.h
index 15b6bbb..f795a00 100644
--- a/api/logger.h
+++ b/api/logger.h
@@ -33,6 +33,6 @@ LoggerLastError(_In_z_ const WCHAR *Prefix)
return Error;
}
-#define WINTUN_LOGGER(lvl, msg) Logger((lvl), _L(__FUNCTION__) L": " msg)
-#define WINTUN_LOGGER_ERROR(msg, err) LoggerError(_L(__FUNCTION__) L": " msg, (err))
-#define WINTUN_LOGGER_LAST_ERROR(msg) LoggerLastError(_L(__FUNCTION__) L": " msg)
+#define LOG(lvl, msg) Logger((lvl), _L(__FUNCTION__) L": " msg)
+#define LOG_ERROR(msg, err) LoggerError(_L(__FUNCTION__) L": " msg, (err))
+#define LOG_LAST_ERROR(msg) LoggerLastError(_L(__FUNCTION__) L": " msg)