diff --git a/sm5/ataprint.c b/sm5/ataprint.c index 38e9d60a2d65088d04f241b66a02bda1a0f31bf1..bb0cb8c8f6b5f621b8249a79100ffa6242e5fa13 100644 --- a/sm5/ataprint.c +++ b/sm5/ataprint.c @@ -28,7 +28,7 @@ #include "smartctl.h" #include "extern.h" -const char *CVSid4="$Id: ataprint.c,v 1.25 2002/10/23 12:24:24 ballen4705 Exp $\n" +const char *CVSid4="$Id: ataprint.c,v 1.26 2002/10/23 12:37:11 ballen4705 Exp $\n" "\t" CVSID2 "\t" CVSID3 "\t" CVSID6 ; // Function for printing ASCII byte-swapped strings, skipping white @@ -501,8 +501,7 @@ int nonempty(unsigned char *testarea,int n){ return 0; } -void ataPrintSmartErrorlog (struct ata_smart_errorlog data) -{ +void ataPrintSmartErrorlog (struct ata_smart_errorlog data){ int i,j,k; pout ("SMART Error Log Version: %i\n", data.revnumber); @@ -1002,7 +1001,7 @@ int ataPrintMain (int fd){ returnval|=FAILSMART; } else { - QUIETON; + // turn on quiet mode inside this ataPrintSmartErrorlog(smarterror); QUIETOFF; } diff --git a/sm5/ataprint.cpp b/sm5/ataprint.cpp index 3608014f676f41902b733759e1d0dbb22c9b30dc..a7453261354bf3f0b3c72db49ef8cea02b413dd1 100644 --- a/sm5/ataprint.cpp +++ b/sm5/ataprint.cpp @@ -28,7 +28,7 @@ #include "smartctl.h" #include "extern.h" -const char *CVSid4="$Id: ataprint.cpp,v 1.25 2002/10/23 12:24:24 ballen4705 Exp $\n" +const char *CVSid4="$Id: ataprint.cpp,v 1.26 2002/10/23 12:37:11 ballen4705 Exp $\n" "\t" CVSID2 "\t" CVSID3 "\t" CVSID6 ; // Function for printing ASCII byte-swapped strings, skipping white @@ -501,8 +501,7 @@ int nonempty(unsigned char *testarea,int n){ return 0; } -void ataPrintSmartErrorlog (struct ata_smart_errorlog data) -{ +void ataPrintSmartErrorlog (struct ata_smart_errorlog data){ int i,j,k; pout ("SMART Error Log Version: %i\n", data.revnumber); @@ -1002,7 +1001,7 @@ int ataPrintMain (int fd){ returnval|=FAILSMART; } else { - QUIETON; + // turn on quiet mode inside this ataPrintSmartErrorlog(smarterror); QUIETOFF; }