Skip to content

Commit

Permalink
[POWERPC] XilinxFB: add banner output to probe routine when DEBUG is …
Browse files Browse the repository at this point in the history
…defined

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>
Acked-by: Andrei Konovalov <akonovalov@ru.mvista.com>
  • Loading branch information
Grant Likely committed Oct 10, 2007
1 parent dcccb37 commit 258de4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/video/xilinxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 258de4b

Please sign in to comment.