Message ID | 20220117175019.13993-8-stephen@networkplumber.org (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | David Ahern |
Headers | show |
Series | fix clang warnings | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/ip/iplink_can.c b/ip/iplink_can.c index 854ccc314e2b..6ea02a2a51c4 100644 --- a/ip/iplink_can.c +++ b/ip/iplink_can.c @@ -330,8 +330,9 @@ static void can_print_nl_indent(void) print_string(PRINT_FP, NULL, "%s", "\t "); } -static void can_print_timing_min_max(const char *json_attr, const char *fp_attr, - int min, int max) +static void __attribute__((format(printf, 2, 0))) +can_print_timing_min_max(const char *json_attr, const char *fp_attr, + int min, int max) { print_null(PRINT_FP, NULL, fp_attr, NULL); open_json_object(json_attr);
Fix warning about passing non-format string. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> --- ip/iplink_can.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)