mtd: fsl-quadspi: fix printk() format warning for size_t
authorBrian Norris <computersforpeace@gmail.com>
Mon, 12 Oct 2015 20:35:15 +0000 (13:35 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 19 Oct 2015 16:50:45 +0000 (09:50 -0700)
commita5c603a22bff27f3aea7e747af4229d75278f3ff
tree6de493537a0d4175c81f5ec41eaabbb73904bdcb
parenta23eb34198c68d9cfdcb7f09f56f2ff416b77c90
mtd: fsl-quadspi: fix printk() format warning for size_t

Seen when compile-testing on non-32-bit arch:

    CC      drivers/mtd/spi-nor/fsl-quadspi.o
  drivers/mtd/spi-nor/fsl-quadspi.c: In function 'fsl_qspi_read':
  drivers/mtd/spi-nor/fsl-quadspi.c:873:2: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t' [-Wformat=]
    dev_dbg(q->dev, "cmd [%x],read from 0x%p, len:%d\n",
    ^

Also drop the '0x' prefixing to the '%p' formatter, since %p already
knows how to format pointers appropriately.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Han xu <han.xu@freescale.com>
drivers/mtd/spi-nor/fsl-quadspi.c