]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: apple-admac: Fix print format
authorVinod Koul <vkoul@kernel.org>
Fri, 10 Jun 2022 04:31:17 +0000 (10:01 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 10 Jun 2022 11:48:07 +0000 (17:18 +0530)
commit6f2b163913db852d7308ce09ed48eabb2819a7a2
treeb9784aef0824fbd6a5b82a053c79000fe66c86c3
parent0a27868115a55c9ed7b25fafa635a5b1379e8a3d
dmaengine: apple-admac: Fix print format

We get a warning (treated as error now)
drivers/dma/apple-admac.c: In function 'admac_cyclic_write_one_desc':
drivers/dma/apple-admac.c:209:26: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=]
  209 |         dev_dbg(ad->dev, "ch%d descriptor: addr=0x%pad len=0x%zx flags=0x%x\n",

Use %lx for priniting the flag

Fixes: 77d2290da684 ("dmaengine: apple-admac: Add Apple ADMAC driver")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220610043117.39337-1-vkoul@kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/apple-admac.c