Skip to contentSkip to conversation

video: fbdev: Fix format string mismatch in wm8505fb.c

PATCH In review Masanari Iida 2 participants 3 messages Apr 29, 2014 – Apr 30, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 video: fbdev: Fix format string mismatch in wm8505fb.c

Fix format string mismatch in contrast_show().

---
 drivers/video/fbdev/wm8505fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/wm8505fb.c +1 -1
index 537d199..d2fafbb 100644
@@ -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
#1 lore raw

PATCH 2/2 video: fbdev: Fix format string mismatch in gbefb.c

Fix format string mismatch in gbefb_show_memsize().

---
 drivers/video/fbdev/gbefb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/gbefb.c +1 -1
index 3ec65a8..4aa56ba 100644
@@ -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
#2 lore raw
In reply to Masanari Iida
Quoted 13 lines · Masanari Iida

Fix format string mismatch in contrast_show().

---
 drivers/video/fbdev/wm8505fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/wm8505fb.c +0 -0
index 537d199..d2fafbb 100644

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