LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File smartmontools-log-scsi-temperature.patch of Package smartmontools (Project home:sbrabec:branches:smartmontools-1047198)

Index: smartmontools-6.5/ChangeLog
===================================================================
--- smartmontools-6.5.orig/ChangeLog
+++ smartmontools-6.5/ChangeLog
@@ -5,6 +5,7 @@ $Id: ChangeLog 4318 2016-05-07 11:18:20Z
 	smartd.cpp: Always suppress "failed to read Temperature" message
 	if SCSI device does not support temperature (ticket #817).
 	Fix initial check for SCSI temperature support.
+	Log SCSI temperature regardless of its origin.
 
 2016-05-07  Christian Franke  <franke@computer.org>
 
Index: smartmontools-6.5/smartd.cpp
===================================================================
--- smartmontools-6.5.orig/smartd.cpp
+++ smartmontools-6.5/smartd.cpp
@@ -794,8 +794,8 @@ static bool write_dev_attrlog(const char
     fprintf(f, "\tnon-medium-errors;%" PRIu64 ";", state.scsi_nonmedium_error.nme.counterPC0);
   }
   // write SCSI current temperature if it is monitored
-  if(state.TempPageSupported && state.temperature)
-     fprintf(f, "\ttemperature;%d;", state.temperature);
+  if (state.temperature)
+    fprintf(f, "\ttemperature;%d;", state.temperature);
   // end of line
   fprintf(f, "\n");
   return true;