summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorMasanari Iida <standby24x7@gmail.com>2014-04-29 21:21:55 +0900
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-04-30 11:24:40 +0300
commit7e81b9ddf2be0f691bf883acfe2b2ee6e55baa7e (patch)
tree660179d87b2ffd85d77a68996f01bd08c0c30efe /drivers/video
parent3ea4ccd004c669b3c1f8241976985ec8c1edaa33 (diff)
downloadlinux-7e81b9ddf2be0f691bf883acfe2b2ee6e55baa7e.tar.bz2
video: fbdev: Fix format string mismatch in gbefb.c
Fix format string mismatch in gbefb_show_memsize(). Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/gbefb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/gbefb.c b/drivers/video/fbdev/gbefb.c
index 3ec65a878ac8..4aa56ba78f32 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);