|
@@ -45,7 +45,8 @@ enum fuse_log_level {
|
|
* @param ap format string arguments
|
|
* @param ap format string arguments
|
|
*/
|
|
*/
|
|
typedef void (*fuse_log_func_t)(enum fuse_log_level level, const char *fmt,
|
|
typedef void (*fuse_log_func_t)(enum fuse_log_level level, const char *fmt,
|
|
- va_list ap);
|
|
|
|
|
|
+ va_list ap)
|
|
|
|
+ G_GNUC_PRINTF(2, 0);
|
|
|
|
|
|
/**
|
|
/**
|
|
* Install a custom log handler function.
|
|
* Install a custom log handler function.
|
|
@@ -68,6 +69,7 @@ void fuse_set_log_func(fuse_log_func_t func);
|
|
* @param level severity level (FUSE_LOG_ERR, FUSE_LOG_DEBUG, etc)
|
|
* @param level severity level (FUSE_LOG_ERR, FUSE_LOG_DEBUG, etc)
|
|
* @param fmt sprintf-style format string including newline
|
|
* @param fmt sprintf-style format string including newline
|
|
*/
|
|
*/
|
|
-void fuse_log(enum fuse_log_level level, const char *fmt, ...);
|
|
|
|
|
|
+void fuse_log(enum fuse_log_level level, const char *fmt, ...)
|
|
|
|
+ G_GNUC_PRINTF(2, 3);
|
|
|
|
|
|
#endif /* FUSE_LOG_H_ */
|
|
#endif /* FUSE_LOG_H_ */
|