public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] simplefb: print some info about the registered fb
@ 2013-09-06 11:44 Tom Gundersen
  2013-09-06 11:49 ` Tom Gundersen
  0 siblings, 1 reply; 9+ messages in thread
From: Tom Gundersen @ 2013-09-06 11:44 UTC (permalink / raw)
  To: linux-fbdev
  Cc: linux-kernel, tomi.valkeinen, plagnioj, Tom Gundersen,
	Stephen Warren, David Herrmann

This is similar to the output printed by efifb.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: David Herrmann <dh.herrmann@gmail.com>
---
 drivers/video/simplefb.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
index 8d78106..4196686 100644
--- a/drivers/video/simplefb.c
+++ b/drivers/video/simplefb.c
@@ -220,6 +220,14 @@ static int simplefb_probe(struct platform_device *pdev)
 	}
 	info->pseudo_palette = (void *)(info + 1);
 
+	dev_info(&pdev->dev, "framebuffer at 0x%lx, mapped to 0x%p\n",
+			     info->fix.smem_start, info->screen_base);
+	dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n",
+			     params.format->name,
+			     info->var.xres, info->var.yres,
+			     info->var.bits_per_pixel,
+			     info->fix.line_length);
+
 	ret = register_framebuffer(info);
 	if (ret < 0) {
 		dev_err(&pdev->dev, "Unable to register simplefb: %d\n", ret);
-- 
1.8.4


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

end of thread, other threads:[~2013-10-09  9:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 11:44 [PATCH] simplefb: print some info about the registered fb Tom Gundersen
2013-09-06 11:49 ` Tom Gundersen
2013-09-06 19:11   ` Stephen Warren
2013-09-07 11:16   ` David Herrmann
2013-09-07 11:43     ` [PATCH v2] " Tom Gundersen
2013-09-07 13:55       ` Geert Uytterhoeven
2013-09-07 14:08         ` [PATCH v3] " Tom Gundersen
2013-10-01 16:45           ` Tom Gundersen
2013-10-09  9:05           ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox