Skip to content

Commit

Permalink
vc-sm: Fix a printf of a dma_addr_t from %u to %pad
Browse files Browse the repository at this point in the history
Avoids issues when other build parameters result in
dma_addr_t being a 64 bit value.
See raspberrypi#2196.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 authored and ryncsn committed Nov 21, 2017
1 parent cddbe52 commit 86a4ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/broadcom/vc_sm/vmcs_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86a4ad0

Please sign in to comment.