mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: 42e764d057 ("staging: tegravde: replace bit assignment with macro")
Cc: Ioannis Valasakis <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
64ce301c97
commit
9483804a72
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ static void tegra_vde_setup_iram_tables(struct tegra_vde *vde,
|
|||
value |= frame->frame_num;
|
||||
|
||||
dev_dbg(vde->miscdev.parent,
|
||||
"\tFrame %d: frame_num = %d B_frame = %d\n",
|
||||
"\tFrame %d: frame_num = %d B_frame = %lu\n",
|
||||
i + 1, frame->frame_num,
|
||||
(frame->flags & FLAG_B_FRAME));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue