From 7015e05178a963afd0149ead8d4be45ee47eb884 Mon Sep 17 00:00:00 2001 From: shattered <shattered@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 14 Apr 2007 08:53:31 +0000 Subject: [PATCH] According to Documentation/ioctl/hdio.txt, HDIO_DRIVE_TASK returns status and error register contents in buff[0], buff[1]. Label them correctly. git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2394 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/os_linux.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sm5/os_linux.cpp b/sm5/os_linux.cpp index c0ba192c5..477904b26 100644 --- a/sm5/os_linux.cpp +++ b/sm5/os_linux.cpp @@ -79,9 +79,9 @@ typedef unsigned long long u8; #define ARGUSED(x) ((void)(x)) -static const char *filenameandversion="$Id: os_linux.cpp,v 1.93 2007/04/01 16:49:48 shattered Exp $"; +static const char *filenameandversion="$Id: os_linux.cpp,v 1.94 2007/04/14 08:53:31 shattered Exp $"; -const char *os_XXXX_c_cvsid="$Id: os_linux.cpp,v 1.93 2007/04/01 16:49:48 shattered Exp $" \ +const char *os_XXXX_c_cvsid="$Id: os_linux.cpp,v 1.94 2007/04/14 08:53:31 shattered Exp $" \ ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_LINUX_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID; // to hold onto exit code for atexit routine @@ -576,8 +576,8 @@ int ata_command_interface(int device, smart_command_set command, int select, cha syserror("Error SMART Status command failed"); pout("Please get assistance from " PACKAGE_HOMEPAGE "\n"); pout("Register values returned from SMART Status command are:\n"); - pout("CMD=0x%02x\n",(int)buff[0]); - pout("FR =0x%02x\n",(int)buff[1]); + pout("ST =0x%02x\n",(int)buff[0]); + pout("ERR=0x%02x\n",(int)buff[1]); pout("NS =0x%02x\n",(int)buff[2]); pout("SC =0x%02x\n",(int)buff[3]); pout("CL =0x%02x\n",(int)buff[4]); -- GitLab