summaryrefslogtreecommitdiff
path: root/drivers/spi/cadence_qspi.h
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2018-07-06 10:39:14 +0800
committerMarek Vasut <marex@denx.de>2018-07-12 09:22:11 +0200
commit9bd39dd8e5f600560a00203ccb3e4e87780e10a2 (patch)
treefcf168f6f92ad746ca7da586ffae7182a516d042 /drivers/spi/cadence_qspi.h
parent1612ff0dfba57b1002d8c7a54778eb553ace98f4 (diff)
spi: cadence_qspi: Fix compilation warning
Use "%zu" for size_t data type. Compilation warning as below: In file included from include/linux/bug.h:7:0, from include/common.h:26, from drivers/spi/cadence_qspi.c:8: drivers/spi/cadence_qspi.c: In function ‘cadence_spi_xfer’: drivers/spi/cadence_qspi.c:211:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=] debug("%s: len=%d [bytes]\n", __func__, data_bytes); ^ include/linux/printk.h:37:21: note: in definition of macro ‘pr_fmt’ #define pr_fmt(fmt) fmt ^~~ include/log.h:142:2: note: in expansion of macro ‘debug_cond’ debug_cond(_DEBUG, fmt, ##args) ^~~~~~~~~~ drivers/spi/cadence_qspi.c:211:2: note: in expansion of macro ‘debug’ debug("%s: len=%d [bytes]\n", __func__, data_bytes); Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/spi/cadence_qspi.h')
0 files changed, 0 insertions, 0 deletions