mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
sata: fsl: fix DPRINTK format string
Printing an __iomem pointer as %x produces a warning: drivers/ata/sata_fsl.c: In function 'fsl_sata_set_irq_coalescing': drivers/ata/sata_fsl.c:316:17: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'void *' [-Werror=format=] 316 | DPRINTK("ICC register status: (hcr base: 0x%x) = 0x%x\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 317 | hcr_base, ioread32(hcr_base + ICC)); | ~~~~~~~~ | | | void * It's not clear why that pointer should be printed here, but if we do, then using %p is the way to avoid the warnings. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20210514213402.691436-1-arnd@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
dbc557fa5f
commit
c9efa49290
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ static void fsl_sata_set_irq_coalescing(struct ata_host *host,
|
|||
|
||||
DPRINTK("interrupt coalescing, count = 0x%x, ticks = %x\n",
|
||||
intr_coalescing_count, intr_coalescing_ticks);
|
||||
DPRINTK("ICC register status: (hcr base: 0x%x) = 0x%x\n",
|
||||
DPRINTK("ICC register status: (hcr base: %p) = 0x%x\n",
|
||||
hcr_base, ioread32(hcr_base + ICC));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue