linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c
@ 2014-04-29 12:21 Masanari Iida
  2014-04-29 12:21 ` [PATCH 2/2] video: fbdev: Fix format string mismatch in gbefb.c Masanari Iida
  2014-04-30  8:26 ` [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Tomi Valkeinen
  0 siblings, 2 replies; 3+ messages in thread
From: Masanari Iida @ 2014-04-29 12:21 UTC (permalink / raw)
  To: plagnioj, tomi.valkeinen, linux-fbdev, linux-kernel; +Cc: Masanari Iida

Fix format string mismatch in contrast_show().

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 drivers/video/fbdev/wm8505fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/wm8505fb.c b/drivers/video/fbdev/wm8505fb.c
index 537d199..d2fafbb 100644
--- a/drivers/video/fbdev/wm8505fb.c
+++ b/drivers/video/fbdev/wm8505fb.c
@@ -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,
-- 
2.0.0.rc1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] video: fbdev: Fix format string mismatch in gbefb.c
  2014-04-29 12:21 [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Masanari Iida
@ 2014-04-29 12:21 ` Masanari Iida
  2014-04-30  8:26 ` [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Masanari Iida @ 2014-04-29 12:21 UTC (permalink / raw)
  To: plagnioj, tomi.valkeinen, linux-fbdev, linux-kernel; +Cc: Masanari Iida

Fix format string mismatch in gbefb_show_memsize().

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 drivers/video/fbdev/gbefb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/gbefb.c b/drivers/video/fbdev/gbefb.c
index 3ec65a8..4aa56ba 100644
--- a/drivers/video/fbdev/gbefb.c
+++ b/drivers/video/fbdev/gbefb.c
@@ -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);
-- 
2.0.0.rc1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c
  2014-04-29 12:21 [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Masanari Iida
  2014-04-29 12:21 ` [PATCH 2/2] video: fbdev: Fix format string mismatch in gbefb.c Masanari Iida
@ 2014-04-30  8:26 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2014-04-30  8:26 UTC (permalink / raw)
  To: Masanari Iida, plagnioj, linux-fbdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

On 29/04/14 15:21, Masanari Iida wrote:
> Fix format string mismatch in contrast_show().
> 
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>
> ---
>  drivers/video/fbdev/wm8505fb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/video/fbdev/wm8505fb.c b/drivers/video/fbdev/wm8505fb.c
> index 537d199..d2fafbb 100644
> --- a/drivers/video/fbdev/wm8505fb.c
> +++ b/drivers/video/fbdev/wm8505fb.c
> @@ -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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-30  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29 12:21 [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Masanari Iida
2014-04-29 12:21 ` [PATCH 2/2] video: fbdev: Fix format string mismatch in gbefb.c Masanari Iida
2014-04-30  8:26 ` [PATCH 1/2] video: fbdev: Fix format string mismatch in wm8505fb.c Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).