[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/6] virtiofsd: Add printf checking to fuse_log
From: |
Dr. David Alan Gilbert (git) |
Subject: |
[PATCH v2 2/6] virtiofsd: Add printf checking to fuse_log |
Date: |
Thu, 27 Aug 2020 16:36:53 +0100 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Use qemu's GCC_FMT_ATTR to add printf style checking to fuse_log.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
tools/virtiofsd/fuse_log.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/virtiofsd/fuse_log.h b/tools/virtiofsd/fuse_log.h
index bf6c11ff11..3ea38312b0 100644
--- a/tools/virtiofsd/fuse_log.h
+++ b/tools/virtiofsd/fuse_log.h
@@ -15,6 +15,7 @@
*/
#include <stdarg.h>
+#include "qemu/compiler.h"
/**
* Log severity level
@@ -69,6 +70,7 @@ void fuse_set_log_func(fuse_log_func_t func);
* @param level severity level (FUSE_LOG_ERR, FUSE_LOG_DEBUG, etc)
* @param fmt sprintf-style format string including newline
*/
+GCC_FMT_ATTR(2, 3)
void fuse_log(enum fuse_log_level level, const char *fmt, ...);
#endif /* FUSE_LOG_H_ */
--
2.26.2
- [PATCH v2 0/6] virtiofsd xattr name mappings, Dr. David Alan Gilbert (git), 2020/08/27
- [PATCH v2 2/6] virtiofsd: Add printf checking to fuse_log,
Dr. David Alan Gilbert (git) <=
- [PATCH v2 1/6] virtiofsd: Silence gcc warning, Dr. David Alan Gilbert (git), 2020/08/27
- [PATCH v2 3/6] tools/virtiofsd: xattr name mappings: Add option, Dr. David Alan Gilbert (git), 2020/08/27
- [PATCH v2 4/6] tools/virtiofsd: xattr name mappings: Map client xattr names, Dr. David Alan Gilbert (git), 2020/08/27
- [PATCH v2 5/6] tools/virtiofsd: xattr name mappings: Map server xattr names, Dr. David Alan Gilbert (git), 2020/08/27
- [PATCH v2 6/6] tools/virtiofsd: xattr name mapping examples, Dr. David Alan Gilbert (git), 2020/08/27