From 7b8457ce9f79eafc4ff6740892ce629aaa8f291f Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Mon, 11 Oct 2021 20:54:22 +0200 Subject: [PATCH] j1939cat: fix long long unsigned int warning in x_name printf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 8 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] Fixes: cc155d2f63da ("j1939cat: make use of new RX UAPI") Signed-off-by: Oliver Hartkopp --- j1939cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j1939cat.c b/j1939cat.c index fd3e63c..8277356 100644 --- a/j1939cat.c +++ b/j1939cat.c @@ -265,7 +265,7 @@ static int j1939cat_extract_serr(struct j1939cat_priv *priv) case J1939_EE_INFO_RX_RTS: stats->tskey = serr->ee_data; j1939cat_print_timestamp(priv, "RX RTS", &tss->ts[0]); - fprintf(stderr, " total size: %u, pgn=0x%05x, sa=0x%02x, da=0x%02x src_name=0x%08llx, dst_name=0x%08llx)\n", + fprintf(stderr, " total size: %u, pgn=0x%05x, sa=0x%02x, da=0x%02x src_name=0x%08lx, dst_name=0x%08lx)\n", stats->total, stats->pgn, stats->sa, stats->da, stats->src_name, stats->dst_name); priv->last_dpo = -1;