mbpfan-josie

Log fan label and speed next to each other

64f6ea509a8b5ced9e12d76f3d2094f29dcbfb6b
Andrew Gaul <andrew@gaul.org> · 2019-10-16T09:57 · browse files at this commit

parents: 6452c64

diff --git a/src/mbpfan.c b/src/mbpfan.c
index 8e843e3..3f2c01e 100644
--- a/src/mbpfan.c
+++ b/src/mbpfan.c
@@ -648,10 +648,10 @@ void mbpfan()
             }
 
             if(verbose) {
-                printf("Fan: %s Old Temp %d: New Temp: %d Speed: %d\n", fan->label, old_temp, new_temp, fan_speed);
+                printf("Old Temp %d: New Temp: %d Fan: %s Speed: %d\n", old_temp, new_temp, fan->label, fan_speed);
 	    
                 if(daemonize) {
-                   syslog(LOG_INFO, "Fan: %s Old Temp %d: New Temp: %d Speed: %d", fan->label, old_temp, new_temp, fan_speed);
+                   syslog(LOG_INFO, "Old Temp %d: New Temp: %d Fan: %s Speed: %d", old_temp, new_temp, fan->label, fan_speed);
                 }
 	    }