video: fbdev: Fix format string mismatch in wm8505fb.c
Subsystems (2)
PATCH 1/2 video: fbdev: Fix format string mismatch in wm8505fb.c
Fix format string mismatch in contrast_show().
Signed-off-by Masanari Iida <[email protected]>
--- drivers/video/fbdev/wm8505fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/wm8505fb.c +1 -1
@@ -162,7 +162,7 @@ static ssize_t contrast_show(struct device *dev,struct fb_info *info =dev_get_drvdata (dev);struct wm8505fb_info *fbi =to_wm8505fb_info (info); -return sprintf (buf,"%d\n" , fbi->contrast); +return sprintf (buf,"%u\n" , fbi->contrast); } static ssize_t contrast_store(struct device *dev,
Signature · 1 line
2.0.0.rc1
PATCH 2/2 video: fbdev: Fix format string mismatch in gbefb.c
Fix format string mismatch in gbefb_show_memsize().
Signed-off-by Masanari Iida <[email protected]>
--- drivers/video/fbdev/gbefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/gbefb.c +1 -1
@@ -1068,7 +1068,7 @@ static struct fb_ops gbefb_ops = {static ssize_t gbefb_show_memsize (struct device *dev,struct device_attribute *attr,char *buf) { -return snprintf (buf,PAGE_SIZE ,"%d\n" , gbe_mem_size); +return snprintf (buf,PAGE_SIZE ,"%u\n" , gbe_mem_size); } static DEVICE_ATTR(size, S_IRUGO, gbefb_show_memsize, NULL);
Signature · 1 line
2.0.0.rc1
Quoted 13 lines · Masanari Iida
Fix format string mismatch in
contrast_show().Signed-off-by Masanari Iida <[email protected]>--- drivers/video/fbdev/wm8505fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/wm8505fb.c +0
-0
drivers/video/fbdev/wm8505fb.c static ssize_t contrast_show(struct device *dev, · line 168
Quoted 8 lines
drivers/video/fbdev/wm8505fb.c +1
-1@@ -162,7 +162,7 @@ static ssize_t contrast_show(struct device *dev,struct fb_info *info =dev_get_drvdata (dev);struct wm8505fb_info *fbi =to_wm8505fb_info (info); -return sprintf (buf,"%d\n" , fbi->contrast); +return sprintf (buf,"%u\n" , fbi->contrast); } static ssize_t contrast_store(struct device *dev,
Thanks, queued this and the 2/2 patch for 3.16.
Tomi