media: staging: tegra-vde: print long unsigned using %lu format specifier
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Nov 2018 11:02:24 +0000 (11:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Nov 2018 11:18:39 +0000 (03:18 -0800)
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>
drivers/staging/media/tegra-vde/tegra-vde.c

index 6f06061..66cf142 100644 (file)
@@ -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 {