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

Should use strerror() function.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@370 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 582da09f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ Home page of code is: http://smartmontools.sourceforge.net
Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
$Id: TODO,v 1.27 2002/12/07 06:23:54 ballen4705 Exp $
$Id: TODO,v 1.28 2002/12/11 15:41:36 ballen4705 Exp $
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
......@@ -39,6 +39,16 @@ least provide a command line option that enables attributes 194, 231
or 9 to be interpreted as Temperature_Celsius.
http://coredump.free.fr/linux/hddtemp.db
Replace code like this:
if (errno<sys_nerr)
errormessage=sys_errlist[errno];
else
errormessage="unrecognized system error";
with
errormessage=strerror(errno);
smartctl:
---------
Handle extended error and self-test logs gracefully. Can someone tell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment