Skip to contentSkip to conversation

fbdev: Fix obvious bug in show_pan()

PATCH RESEND New Antonino A. Daplas 1 participant 1 message Feb 25, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 5/9 fbdev: Fix obvious bug in show_pan()

show_pan will display the value of the xoffset twice, instead of the xoffset and yoffset. Fix.

---

 drivers/video/fbsysfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/fbsysfs.c +1 -1
index 40c80c8..d4a2c11 100644
@@ -376,7 +376,7 @@ static ssize_t show_pan(struct device *d
 {
 	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,

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV