diff mbox series

[1/5] power: avs: qcom-cpr: fix invalid printk specifier in debug print

Message ID 20191223141934.19837-2-nks@flawful.org (mailing list archive)
State Mainlined, archived
Headers show
Series qcom-cpr fixes for rjw bleeding-edge | expand

Commit Message

Niklas Cassel Dec. 23, 2019, 2:19 p.m. UTC
drivers/power/avs/qcom-cpr.c:838:15:
warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘ssize_t’

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Niklas Cassel <nks@flawful.org>
---
 drivers/power/avs/qcom-cpr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bjorn Andersson Dec. 27, 2019, 6:45 a.m. UTC | #1
On Mon 23 Dec 06:19 PST 2019, Niklas Cassel wrote:

> drivers/power/avs/qcom-cpr.c:838:15:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘ssize_t’
> 

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Niklas Cassel <nks@flawful.org>
> ---
>  drivers/power/avs/qcom-cpr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c
> index a3187973bbb5..a52d2cef1300 100644
> --- a/drivers/power/avs/qcom-cpr.c
> +++ b/drivers/power/avs/qcom-cpr.c
> @@ -835,7 +835,7 @@ static int cpr_read_efuse(struct device *dev, const char *cname, u32 *data)
>  		*data |= ret[i] << (8 * i);
>  
>  	kfree(ret);
> -	dev_dbg(dev, "efuse read(%s) = %x, bytes %ld\n", cname, *data, len);
> +	dev_dbg(dev, "efuse read(%s) = %x, bytes %zd\n", cname, *data, len);
>  
>  	return 0;
>  }
> -- 
> 2.24.1
>
diff mbox series

Patch

diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c
index a3187973bbb5..a52d2cef1300 100644
--- a/drivers/power/avs/qcom-cpr.c
+++ b/drivers/power/avs/qcom-cpr.c
@@ -835,7 +835,7 @@  static int cpr_read_efuse(struct device *dev, const char *cname, u32 *data)
 		*data |= ret[i] << (8 * i);
 
 	kfree(ret);
-	dev_dbg(dev, "efuse read(%s) = %x, bytes %ld\n", cname, *data, len);
+	dev_dbg(dev, "efuse read(%s) = %x, bytes %zd\n", cname, *data, len);
 
 	return 0;
 }