[Goodies-commits] r5956 - xfce4-sensors-plugin/trunk/lib

Fabian Nowak timystery at xfce.org
Tue Nov 4 02:07:04 CET 2008


Author: timystery
Date: 2008-11-04 01:07:04 +0000 (Tue, 04 Nov 2008)
New Revision: 5956

Modified:
   xfce4-sensors-plugin/trunk/lib/acpi.c
Log:
debug output to acpi.c :)


Modified: xfce4-sensors-plugin/trunk/lib/acpi.c
===================================================================
--- xfce4-sensors-plugin/trunk/lib/acpi.c	2008-11-04 01:01:35 UTC (rev 5955)
+++ xfce4-sensors-plugin/trunk/lib/acpi.c	2008-11-04 01:07:04 UTC (rev 5956)
@@ -292,6 +292,7 @@
                     {
                         cut_newline (buf);
                         chipfeature->name = g_strdup (buf);
+                        DBG ("Name=%s\n", buf);
                     }
 #else
                     chipfeature->name = g_strdup (chipfeature->devicename);
@@ -316,6 +317,7 @@
                     {
                         cut_newline (buf);
                         chipfeature->raw_value = strtod (buf, NULL);
+                        DBG ("Raw-Value=%f\n", chipfeature->raw_value);
                     }
                     fclose (file);
                 }
@@ -327,6 +329,7 @@
                     {
                         cut_newline (buf);
                         chipfeature->min_value = strtod (buf, NULL);
+                        DBG ("Min-Value=%f\n", chipfeature->min_value);
                     }
 #else
                     while (fgets (buf, 1024, file)!=NULL)
@@ -398,6 +401,7 @@
                                             ACPI_DIR_BATTERY, name,
                                             ACPI_FILE_BATTERY_INFO);
 #endif
+    DBG ("filename=%s\n", filename);
     file = fopen (filename, "r");
     if (file)
     {
@@ -406,6 +410,7 @@
         {
             cut_newline (buf);
             chipfeature->max_value = strtod (buf, NULL);
+            DBG ("Max-Value=%f\n", chipfeature->max_value);
         }
 #else
         while (fgets (buf, 1024, file)!=NULL)




More information about the Goodies-commits mailing list