]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dmaengine: sa11x0: use correct print specifiers for u32
authorVinod Koul <vinod.koul@intel.com>
Wed, 14 Sep 2016 09:52:49 +0000 (15:22 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 16:59:20 +0000 (22:29 +0530)
This driver when compiled on 64 bits gave warnings:

drivers/dma/sa11x0-dma.c:494:2: warning: format ‘%zx’ expects argument of type ‘size_t’, but argument 4 has type ‘u32’ [-Wformat=]

We should use %x to print 'u32' values.

Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sa11x0-dma.c

index 137fad5859f64dd7ab55013ffbddd9e0dd40c480..4ebc00f90f36576dbe04468ed70ee05c91267799 100644 (file)
@@ -491,7 +491,7 @@ static enum dma_status sa11x0_dma_tx_status(struct dma_chan *chan,
        }
        spin_unlock_irqrestore(&c->vc.lock, flags);
 
-       dev_vdbg(d->slave.dev, "tx_status: bytes 0x%zx\n", state->residue);
+       dev_vdbg(d->slave.dev, "tx_status: bytes 0x%x\n", state->residue);
 
        return ret;
 }