diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-02-19 10:12:11 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-01 17:13:12 -0800 |
commit | 3fed5bac16a7c3f949d59a0c96b4ffd8f63fbcc1 (patch) | |
tree | 9a15102555dcdb9dd92b0f7e212aea434144f540 /drivers/staging | |
parent | cc060ed086995922cf36edc46359045092821cf2 (diff) | |
download | blackbird-op-linux-3fed5bac16a7c3f949d59a0c96b4ffd8f63fbcc1.tar.gz blackbird-op-linux-3fed5bac16a7c3f949d59a0c96b4ffd8f63fbcc1.zip |
staging: fbtft: fbtft-core: Use '%zu' to print 'size_t' format
When building for ARM64 the following build warning is seen:
drivers/staging/fbtft/fbtft-core.c:1004:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
Use '%zu' to print 'size_t' format.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/fbtft/fbtft-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index 8ca45110cfbe..e8d8d07d5f23 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -1000,7 +1000,7 @@ int fbtft_register_framebuffer(struct fb_info *fb_info) fbtft_sysfs_init(par); if (par->txbuf.buf) - sprintf(text1, ", %d KiB %sbuffer memory", + sprintf(text1, ", %zu KiB %sbuffer memory", par->txbuf.len >> 10, par->txbuf.dma ? "DMA " : ""); if (spi) sprintf(text2, ", spi%d.%d at %d MHz", spi->master->bus_num, |