]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: coda: print SEQ_INIT error code as hex value
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 5 Nov 2018 15:25:10 +0000 (10:25 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 10:31:25 +0000 (05:31 -0500)
The error code looks much more like a bit field than an error value.
Print it as hex rather than decimal.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-bit.c

index 348b1714071514064ac00f9e7f117e212e1d9a76..53f1a83e72a9335f371609bd4e3ba668bf5b078f 100644 (file)
@@ -1748,7 +1748,7 @@ static int __coda_start_decoding(struct coda_ctx *ctx)
 
        if (coda_read(dev, CODA_RET_DEC_SEQ_SUCCESS) == 0) {
                v4l2_err(&dev->v4l2_dev,
-                       "CODA_COMMAND_SEQ_INIT failed, error code = %d\n",
+                       "CODA_COMMAND_SEQ_INIT failed, error code = 0x%x\n",
                        coda_read(dev, CODA_RET_DEC_SEQ_ERR_REASON));
                return -EAGAIN;
        }