diff mbox

OMAPFB: make debug message more useful

Message ID 1309972109-23778-1-git-send-email-andy.doan@linaro.org (mailing list archive)
State Accepted
Delegated to: Tomi Valkeinen
Headers show

Commit Message

Andy Doan July 6, 2011, 5:08 p.m. UTC
Make the debug message useful by printing the name of the device
that no associated driver could be found for.

Signed-off-by: Andy Doan <andy.doan@linaro.org>
---
 drivers/video/omap2/omapfb/omapfb-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Tomi Valkeinen Aug. 4, 2011, 8:09 a.m. UTC | #1
On Wed, 2011-07-06 at 12:08 -0500, Andy Doan wrote:
> Make the debug message useful by printing the name of the device
> that no associated driver could be found for.
> 
> Signed-off-by: Andy Doan <andy.doan@linaro.org>
> ---
>  drivers/video/omap2/omapfb/omapfb-main.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
> index 602b71a..e5a64b3 100644
> --- a/drivers/video/omap2/omapfb/omapfb-main.c
> +++ b/drivers/video/omap2/omapfb/omapfb-main.c
> @@ -2373,7 +2373,8 @@ static int omapfb_probe(struct platform_device *pdev)
>  		omap_dss_get_device(dssdev);
>  
>  		if (!dssdev->driver) {
> -			dev_err(&pdev->dev, "no driver for display\n");
> +			dev_err(&pdev->dev, "no driver for display: %s\n",
> +				dssdev->name);
>  			r = -ENODEV;
>  		}
>  

Thanks, applying.

 Tomi


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 602b71a..e5a64b3 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -2373,7 +2373,8 @@  static int omapfb_probe(struct platform_device *pdev)
 		omap_dss_get_device(dssdev);
 
 		if (!dssdev->driver) {
-			dev_err(&pdev->dev, "no driver for display\n");
+			dev_err(&pdev->dev, "no driver for display: %s\n",
+				dssdev->name);
 			r = -ENODEV;
 		}