Commit 9483804a725a865abf877c1e0242120d9a21f7bb
Committed by
Greg Kroah-Hartman
1 parent
64ce301c97
media: staging: tegra-vde: print long unsigned using %lu format specifier
The frame.flags & FLAG_B_FRAME is promoted to a long unsigned because of the use of the BIT() macro when defining FLAG_B_FRAME and causing a build warning. Fix this by using the %lu format specifer. Cleans up warning: drivers/staging/media/tegra-vde/tegra-vde.c:267:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] Fixes: 42e764d05712 ("staging: tegravde: replace bit assignment with macro") Cc: Ioannis Valasakis <code@wizofe.uk> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/staging/media/tegra-vde/tegra-vde.c
... | ... | @@ -262,7 +262,7 @@ |
262 | 262 | value |= frame->frame_num; |
263 | 263 | |
264 | 264 | dev_dbg(vde->miscdev.parent, |
265 | - "\tFrame %d: frame_num = %d B_frame = %d\n", | |
265 | + "\tFrame %d: frame_num = %d B_frame = %lu\n", | |
266 | 266 | i + 1, frame->frame_num, |
267 | 267 | (frame->flags & FLAG_B_FRAME)); |
268 | 268 | } else { |