diff --git a/sm5/ataprint.c b/sm5/ataprint.c index 6003437e4efe0e7e37f2203fa68e3f58d1ff058b..45da2c433e4e7aa0d3b5a304d69c5d001e74c333 100644 --- a/sm5/ataprint.c +++ b/sm5/ataprint.c @@ -30,7 +30,7 @@ #include "smartctl.h" #include "extern.h" -const char *CVSid2="$Id: ataprint.c,v 1.50 2003/01/03 17:25:12 ballen4705 Exp $" +const char *CVSid2="$Id: ataprint.c,v 1.51 2003/01/05 23:59:19 ballen4705 Exp $" CVSID1 CVSID2 CVSID3 CVSID6; // for passing global control variables @@ -675,7 +675,7 @@ int ataPrintSmartSelfTestlog(struct ata_smart_selftestlog *data,int allentries){ // This is true in ALL ATA-5 specs if (!errorfound || log->lbafirstfailure==0xffffffff || log->lbafirstfailure==0x00000000) - sprintf(firstlba,"%s",""); + sprintf(firstlba,"%s","-"); else sprintf(firstlba,"0x%08x",log->lbafirstfailure); diff --git a/sm5/ataprint.cpp b/sm5/ataprint.cpp index 64ed2db148c1e14ad8ca8540fd5a10a64c18ba4f..7b9c416d3f0db345b8d7c570bcfdc38a19fad338 100644 --- a/sm5/ataprint.cpp +++ b/sm5/ataprint.cpp @@ -30,7 +30,7 @@ #include "smartctl.h" #include "extern.h" -const char *CVSid2="$Id: ataprint.cpp,v 1.50 2003/01/03 17:25:12 ballen4705 Exp $" +const char *CVSid2="$Id: ataprint.cpp,v 1.51 2003/01/05 23:59:19 ballen4705 Exp $" CVSID1 CVSID2 CVSID3 CVSID6; // for passing global control variables @@ -675,7 +675,7 @@ int ataPrintSmartSelfTestlog(struct ata_smart_selftestlog *data,int allentries){ // This is true in ALL ATA-5 specs if (!errorfound || log->lbafirstfailure==0xffffffff || log->lbafirstfailure==0x00000000) - sprintf(firstlba,"%s",""); + sprintf(firstlba,"%s","-"); else sprintf(firstlba,"0x%08x",log->lbafirstfailure);