]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
remoteproc: Fix use of format specifyer
authorEmil Goode <emilgoode@gmail.com>
Fri, 28 Sep 2012 15:35:06 +0000 (17:35 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 2 Oct 2012 08:14:43 +0000 (10:14 +0200)
commitd09f53a735bae43806a77754312a45d3f1198342
tree9fee166f4ee51906db2ff787c3f7453837f0b563
parent7168d914a782086e217214c57ddfc7cc4b738c0c
remoteproc: Fix use of format specifyer

The dma_addr_t type can be either u32 or u64 depending on
the configuration. We should use a format specifyer for the
larger type and explicitly cast to it.

Sparse warnings:
drivers/remoteproc/remoteproc_core.c:234:2: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 6 has type ‘dma_addr_t’ [-Wformat]

drivers/remoteproc/remoteproc_core.c:596:2: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 5 has type ‘dma_addr_t’ [-Wformat]

drivers/remoteproc/remoteproc_core.c:634:3:
warning: format ‘%x’ expects argument of type ‘unsigned int’,
but argument 5 has type ‘dma_addr_t’ [-Wformat]

Signed-off-by: Emil Goode <emilgoode@gmail.com>
[fix commit log typos]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c