media: dib7000p: incorrect format specifier detected by clang
authorSean Young <sean@mess.org>
Wed, 1 Jan 2020 08:59:58 +0000 (09:59 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 8 Jan 2020 10:37:40 +0000 (11:37 +0100)
drivers/media/dvb-frontends/dib7000p.c:918:37: warning: format specifies type 'short' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
                dprintk("SPLIT %p: %hd\n", demod, agc_split);
                                   ~~~            ^~~~~~~~~
                                   %hhu

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/dib7000p.c

index 0d22c70..0a7790c 100644 (file)
@@ -915,7 +915,7 @@ static int dib7000p_agc_startup(struct dvb_frontend *demod)
 
                dib7000p_restart_agc(state);
 
-               dprintk("SPLIT %p: %hd\n", demod, agc_split);
+               dprintk("SPLIT %p: %u\n", demod, agc_split);
 
                (*agc_state)++;
                ret = 5;