From 86a4ad004d7df387bf80afaf29db66e4eb3fe254 Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Sun, 24 Sep 2017 22:43:16 +0100 Subject: [PATCH] vc-sm: Fix a printf of a dma_addr_t from %u to %pad Avoids issues when other build parameters result in dma_addr_t being a 64 bit value. See #2196. Signed-off-by: Dave Stevenson --- drivers/char/broadcom/vc_sm/vmcs_sm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/broadcom/vc_sm/vmcs_sm.c b/drivers/char/broadcom/vc_sm/vmcs_sm.c index 3d9cd0591d2753..754f29e88968ec 100644 --- a/drivers/char/broadcom/vc_sm/vmcs_sm.c +++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c @@ -575,8 +575,8 @@ static int vc_sm_global_state_show(struct seq_file *s, void *v) resource->attach); seq_printf(s, " SGT %p\n", resource->sgt); - seq_printf(s, " DMA_ADDR 0x%08X\n", - resource->dma_addr); + seq_printf(s, " DMA_ADDR %pad\n", + &resource->dma_addr); } } seq_printf(s, "\n\nTotal resource count: %d\n\n", resource_count);