Skip to content
Snippets Groups Projects
Commit 5b16501f authored by ballen4705's avatar ballen4705
Browse files

Philosophy -- all rows have the same number of columns. Print a placeholder

like "-" if there is no entry.


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@434 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 6c3e0922
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment