Staging: lustre: Replace __printf(string-index, first-to-check) with __attribute__((format(printf, string-index, first-to-check)))
PATCH v2 1/1 Staging: lustre: Replace __printf(string-index, first-to-check) with __attribute__((format(printf, string-index, first-to-check)))
Fix checkpatch.pl issues with __printf(string-index, first-to-check) is preferred over __attribute__((format(printf, string-index, first-to-check))) in libcfs_debug.h
Signed-off-by Dilek Uzulmez <[email protected]>
---
Changes in v2:
Changed subject line
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h +2 -2
@@ -244,12 +244,12 @@ do { \ int libcfs_debug_msg(struct libcfs_debug_msg_data *msgdata, const char *format1, ...) - __attribute__ ((format (printf,2 ,3 ))); + __printf(string-index, first-to-check); int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata, const char *format1, va_list args, const char *format2, ...) - __attribute__ ((format (printf,4 ,5 ))); + __printf(string-index, first-to-check);/* other external symbols that tracefile provides: */ int cfs_trace_copyin_string(char *knl_buffer, int knl_buffer_nob,
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 7 lines · Dilek Uzulmez
Fix checkpatch.pl issues with
__printf(string-index, first-to-check)is preferred over__attribute__((format(printf, string-index, first-to-check)))inlibcfs_debug.hSigned-off-by Dilek Uzulmez <[email protected]>---
Changes in v2:
Changed subject line
You obviously did not even compile this patch, why not? It's a bit rude to break the build :(
Please be more careful.