diff options
author | unknown <msvensson@shellback.(none)> | 2006-10-12 20:02:17 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-10-12 20:02:17 +0200 |
commit | 7bcd1f9f54529938ea0a0dabb40a184c413a6174 (patch) | |
tree | 5f4dbba5922b8c0028ebf2a584b89b218cd6338a /include/my_dbug.h | |
parent | a28a9c278638974ce0173eb5329f5946d209bd33 (diff) | |
download | mariadb-git-7bcd1f9f54529938ea0a0dabb40a184c413a6174.tar.gz |
Add ATTRIBUTE_FORMAT for _db_doprnt, it will catch problems
with DBUG_PRINT format specifiers
include/my_dbug.h:
Add ATTRIBUTE_FORMAT for _db_doprnt, it will catch problems with DBUG_PRINT format specifiers
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r-- | include/my_dbug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index bf2e8d9969b..8a8d622e2a3 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -36,7 +36,8 @@ extern void _db_enter_(const char *_func_,const char *_file_,uint _line_, extern void _db_return_(uint _line_,const char **_sfunc_,const char **_sfile_, uint *_slevel_); extern void _db_pargs_(uint _line_,const char *keyword); -extern void _db_doprnt_ _VARARGS((const char *format,...)); +extern void _db_doprnt_ _VARARGS((const char *format,...)) + ATTRIBUTE_FORMAT(printf, 1, 2); extern void _db_dump_(uint _line_,const char *keyword,const char *memory, uint length); extern void _db_output_(uint flag); |