summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-06-30 09:11:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-06-30 09:11:24 +0200
commitbe942a091bdfe5cd4e31313e972d3c2cededa860 (patch)
tree99a8a41343326dfc8a339cf35acfcf802952aa0e /src/phmain.c
parentfef758b100e987748dfa468ecfcacb0f8c036248 (diff)
Log HDD serial number and firmware revision
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/phmain.c b/src/phmain.c
index 61294ab..409b87c 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -321,12 +321,14 @@ int main( int argc, char **argv )
for(element_disk=list_disk;element_disk!=NULL;element_disk=element_disk->next)
{
disk_t *disk=element_disk->disk;
- if(disk->model==NULL)
- log_info("%s, sector size=%u\n",
- disk->description(disk), disk->sector_size);
- else
- log_info("%s, sector size=%u - %s\n",
- disk->description(disk), disk->sector_size, disk->model);
+ log_info("%s, sector size=%u", disk->description(disk), disk->sector_size);
+ if(disk->model!=NULL)
+ log_info(" - %s", disk->model);
+ if(disk->serial_no!=NULL)
+ log_info(", S/N:%s", disk->serial_no);
+ if(disk->fw_rev!=NULL)
+ log_info(", FW:%s", disk->fw_rev);
+ log_info("\n");
}
log_info("\n");
reset_list_file_enable(list_file_enable);