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

New commits:
commit e311f712e619f1098dddfbc854bf4fabd3b16937
Author: Kevin Brace <kevinbr...@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 <kevinbr...@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
_______________________________________________
Openchrome-devel mailing list
Openchrome-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/openchrome-devel

Reply via email to