diff --git a/sm5/smartd.c b/sm5/smartd.c index 6d8632ec3ca8c79a902ba6117e1bdc12aded03c6..bbb485829047c4a91a21b4490e316f179f26b6cc 100644 --- a/sm5/smartd.c +++ b/sm5/smartd.c @@ -37,7 +37,7 @@ #include "ataprint.h" extern const char *CVSid1, *CVSid2; -const char *CVSid3="$Id: smartd.c,v 1.19 2002/10/24 10:12:11 ballen4705 Exp $" +const char *CVSid3="$Id: smartd.c,v 1.20 2002/10/24 10:13:53 ballen4705 Exp $" CVSID1 CVSID4 CVSID7; int daemon_init(void){ @@ -221,7 +221,7 @@ void ataCompareSmartValues (atadevices_t *device, struct ata_smart_values new ){ while (*loc && *loc==' ') loc++; printout(LOG_INFO, "Device: %s, SMART Attribute %s Changed from %i to %i\n", - device->devicename,attributename,oldval,newval); + device->devicename,loc,oldval,newval); } } } @@ -251,7 +251,7 @@ int ataCheckDevice( atadevices_t *drive){ while (*loc && *loc==' ') loc++; printout(LOG_CRIT,"Device: %s, Failed attribute %s. Investigate with smartctl -v.\n", - drive->devicename,attributename); + drive->devicename,loc); } // WHEN IT WORKS, we should here add a call to ataSmartStatus2() diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 21cac40135d66029a2f0eab8cd5991c6235f986a..b9b02302001a318c0e3d43cb25be9a273f59266d 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -37,7 +37,7 @@ #include "ataprint.h" extern const char *CVSid1, *CVSid2; -const char *CVSid3="$Id: smartd.cpp,v 1.19 2002/10/24 10:12:11 ballen4705 Exp $" +const char *CVSid3="$Id: smartd.cpp,v 1.20 2002/10/24 10:13:53 ballen4705 Exp $" CVSID1 CVSID4 CVSID7; int daemon_init(void){ @@ -221,7 +221,7 @@ void ataCompareSmartValues (atadevices_t *device, struct ata_smart_values new ){ while (*loc && *loc==' ') loc++; printout(LOG_INFO, "Device: %s, SMART Attribute %s Changed from %i to %i\n", - device->devicename,attributename,oldval,newval); + device->devicename,loc,oldval,newval); } } } @@ -251,7 +251,7 @@ int ataCheckDevice( atadevices_t *drive){ while (*loc && *loc==' ') loc++; printout(LOG_CRIT,"Device: %s, Failed attribute %s. Investigate with smartctl -v.\n", - drive->devicename,attributename); + drive->devicename,loc); } // WHEN IT WORKS, we should here add a call to ataSmartStatus2()