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

Missing break in switch statement; attribute 231 printed as unknown.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@163 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent a08d6017
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
#include <stdlib.h>
#include "atacmds.h"
const char *CVSid1="$Id: atacmds.c,v 1.31 2002/10/28 23:46:59 ballen4705 Exp $" CVSID1;
const char *CVSid1="$Id: atacmds.c,v 1.32 2002/10/29 18:19:02 ballen4705 Exp $" CVSID1;
// These Drive Identity tables are taken from hdparm 5.2, and are also
// given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note
......@@ -801,6 +801,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
break;
case 231:
name="Temperature_Centigrade";
break;
default:
name="Unknown_Attribute";
break;
......
......@@ -30,7 +30,7 @@
#include <stdlib.h>
#include "atacmds.h"
const char *CVSid1="$Id: atacmds.cpp,v 1.31 2002/10/28 23:46:59 ballen4705 Exp $" CVSID1;
const char *CVSid1="$Id: atacmds.cpp,v 1.32 2002/10/29 18:19:02 ballen4705 Exp $" CVSID1;
// These Drive Identity tables are taken from hdparm 5.2, and are also
// given in the ATA/ATAPI specs for the IDENTIFY DEVICE command. Note
......@@ -801,6 +801,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
break;
case 231:
name="Temperature_Centigrade";
break;
default:
name="Unknown_Attribute";
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment