[PATCH 1/6] Xilinxfb: add banner output to probe routine when DEBUG is defined

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <linux-fbdev-devel@...>, <akonovalov@...>, <linuxppc@...>, <adaplas@...>
Date: Monday, October 1, 2007 - 11:57 am

From: Grant Likely <grant.likely@secretlab.ca>

Debug support: when DEBUG is defined, output relevant details to the
log about the framebuffer registration.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
---

 drivers/video/xilinxfb.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c
index 4bc67ab..1a5f1e4 100644
--- a/drivers/video/xilinxfb.c
+++ b/drivers/video/xilinxfb.c
@@ -287,6 +287,11 @@ xilinxfb_drv_probe(struct device *dev)
 		goto failed4;
 	}
 
+	/* Put a banner in the log (for DEBUG) */
+	dev_dbg(dev, "regs: phys=%x, virt=%p\n",
+		drvdata->regs_phys, drvdata->regs);
+	dev_dbg(dev, "fb: phys=%p, virt=%p, size=%x\n",
+		(void*)drvdata->fb_phys, drvdata->fb_virt, FB_SIZE);
 	return 0;	/* success */
 
 failed4:

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Linux-fbdev-devel] [PATCH 0/6] Patch series to add of_p..., Antonino A. Daplas, (Tue Oct 2, 8:15 pm)
Re: [Linux-fbdev-devel] [PATCH 0/6] Patch series to add of_p..., Antonino A. Daplas, (Tue Oct 9, 1:04 am)
Re: [Linux-fbdev-devel] [PATCH 0/6] Patch series to add of_p..., Antonino A. Daplas, (Tue Oct 9, 5:06 pm)
[PATCH 6/6] Xilinxfb: add of_platform bus binding, Grant Likely, (Mon Oct 1, 11:57 am)
Re: [PATCH 6/6] Xilinxfb: add of_platform bus binding, Andrei Konovalov, (Thu Oct 4, 8:11 am)
Re: [PATCH 6/6] Xilinxfb: add of_platform bus binding, Akinobu Mita, (Mon Oct 1, 12:42 pm)
Re: [PATCH 6/6] Xilinxfb: add of_platform bus binding, Grant Likely, (Mon Oct 1, 12:46 pm)
[PATCH 1/6] Xilinxfb: add banner output to probe routine whe..., Grant Likely, (Mon Oct 1, 11:57 am)