Skip to content

Commit

Permalink
uh_log_xx: check the arguments like printf
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Jan 15, 2021
1 parent b0d35ed commit fa6248b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa6248b

Please sign in to comment.