From 86134181d0d60bd749edeff6fb613f22170f4838 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Wed, 11 Dec 2002 15:41:36 +0000 Subject: [PATCH] Should use strerror() function. git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@370 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/TODO | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sm5/TODO b/sm5/TODO index df4041644..0aa5cddb6 100644 --- a/sm5/TODO +++ b/sm5/TODO @@ -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 -- GitLab