From: Antonino A. Daplas Date: Tue, 8 May 2007 07:37:30 +0000 (-0700) Subject: fbdev: fix obvious bug in show_pan() X-Git-Tag: v2.6.22-rc1~459 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4270637ff379163d22721b897f0dc5592794c68;p=linux-2.6 fbdev: fix obvious bug in show_pan() show_pan will display the value of the xoffset twice, instead of the xoffset and yoffset. Fix. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/fbsysfs.c b/drivers/video/fbsysfs.c index 40c80c8190..d4a2c11d98 100644 --- a/drivers/video/fbsysfs.c +++ b/drivers/video/fbsysfs.c @@ -376,7 +376,7 @@ static ssize_t show_pan(struct device *device, { struct fb_info *fb_info = dev_get_drvdata(device); return snprintf(buf, PAGE_SIZE, "%d,%d\n", fb_info->var.xoffset, - fb_info->var.xoffset); + fb_info->var.yoffset); } static ssize_t show_name(struct device *device,