media: dib7000m: incorrect format specifier detected by clang
authorSean Young <sean@mess.org>
Wed, 1 Jan 2020 08:58:56 +0000 (09:58 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 8 Jan 2020 10:37:11 +0000 (11:37 +0100)
drivers/media/dvb-frontends/dib7000m.c:811:38: 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/dib7000m.c

index e211830..97ce977 100644 (file)
@@ -808,7 +808,7 @@ static int dib7000m_agc_startup(struct dvb_frontend *demod)
 
                        dib7000m_restart_agc(state);
 
-                       dprintk("SPLIT %p: %hd\n", demod, agc_split);
+                       dprintk("SPLIT %p: %u\n", demod, agc_split);
 
                        (*agc_state)++;
                        ret = 5;