]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: Use '%zu' for printing 'size_t' type
authorFabio Estevam <festevam@gmail.com>
Wed, 5 Jun 2019 21:54:22 +0000 (18:54 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:03:35 +0000 (15:03 +0200)
commitee04c7bf7e16186ce282f1fd44b5de6f05dea5f8
tree908972b793861ba651f7108289393c6b8a83813a
parent2fec7befb5e177bd054de6ac8ab73bc44882034a
staging: kpc2000: Use '%zu' for printing 'size_t' type

In order to print a 'size_t' type the '%zu' specifier needs to be used.

Change it accordingly in order to fix the following build warning:

drivers/staging/kpc2000/kpc_dma/fileops.c:57:35: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t {aka unsigned int}' [-Wformat=]

Reported-by: Build bot for Mark Brown <broonie@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc_dma/fileops.c