uh_log_xx: check the arguments like printf
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
1 parent
b0d35ed4fb
commit
fa6248b1f1
1 file changed
+2
-1
@@ -40,6 +40,7 @@ void uh_log_close();
|
||||
#define uh_log_info(fmt...) uh_log(LOG_INFO, fmt)
|
||||
#define uh_log_err(fmt...) uh_log(LOG_ERR, fmt)
|
||||
|
||||
void __uh_log(const char *filename, int line, int priority, const char *fmt, ...);
|
||||
void __uh_log(const char *filename, int line, int priority, const char *fmt, ...)
|
||||
__attribute__((format(printf, 4, 5)));
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user