[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220117175019.13993-8-stephen@networkplumber.org>
Date: Mon, 17 Jan 2022 09:50:15 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH v3 iproute2-next 07/11] can: fix clang warning
Fix warning about passing non-format string.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
ip/iplink_can.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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);
--
2.30.2
Powered by blists - more mailing lists