[Openchrome-devel] xf86-video-openchrome: src/via_lvds.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Fri Apr 15 07:19:20 UTC 2016


 src/via_lvds.c |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

New commits:
commit e311f712e619f1098dddfbc854bf4fabd3b16937
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Fri Apr 15 00:17:47 2016 -0700

    Debug messages quality improvement within ViaLCDPower
    
    Improved the quality of debug messages within ViaLCDPower function
    inside via_lvds.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_lvds.c b/src/via_lvds.c
index 4935fc6..bd41e14 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -339,12 +339,8 @@ ViaLCDPower(xf86OutputPtr output, Bool On)
     VIABIOSInfoPtr pBIOSInfo = pVia->pBIOSInfo;
     int i;
 
-#ifdef HAVE_DEBUG
-    if (On)
-        xf86DrvMsg(pScrn->scrnIndex, X_INFO, "ViaLCDPower: On.\n");
-    else
-        xf86DrvMsg(pScrn->scrnIndex, X_INFO, "ViaLCDPower: Off.\n");
-#endif
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Entered ViaLCDPower.\n"));
 
     /* Enable LCD */
     if (On)
@@ -375,6 +371,13 @@ ViaLCDPower(xf86OutputPtr output, Bool On)
     else
         ViaLCDPowerSequence(hwp, powerOff[i]);
     usleep(1);
+
+    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                "Integrated LVDS Flat Panel Power: %s\n",
+                On ? "On" : "Off");
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting ViaLCDPower.\n"));
 }
 
 static void


More information about the Openchrome-devel mailing list