Re: [PATCH v1] i2c: ismt: Use %pad specifier for dma_addr_t variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2017-11-10 at 20:33 +0200, Andy Shevchenko wrote:
> ...which takes care of proper format and size of the value.

Wolfram, any comment on this?

> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
>  drivers/i2c/busses/i2c-ismt.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-
> ismt.c
> index b51adffa4841..c0d0f34d34f3 100644
> --- a/drivers/i2c/busses/i2c-ismt.c
> +++ b/drivers/i2c/busses/i2c-ismt.c
> @@ -572,8 +572,7 @@ static int ismt_access(struct i2c_adapter *adap,
> u16 addr,
>  			return -EIO;
>  		}
>  
> -		dev_dbg(dev, " dma_addr = 0x%016llX\n",
> -			(unsigned long long)dma_addr);
> +		dev_dbg(dev, " dma_addr = %pad\n", &dma_addr);
>  
>  		desc->dptr_low = lower_32_bits(dma_addr);
>  		desc->dptr_high = upper_32_bits(dma_addr);

-- 
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux