From fc68d0fdff6b38d19074b9d4a6bc18df18b20df6 Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Tue, 29 Oct 2002 18:19:02 +0000
Subject: [PATCH] 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
---
 sm5/atacmds.c   | 3 ++-
 sm5/atacmds.cpp | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sm5/atacmds.c b/sm5/atacmds.c
index b19ec3d8c..e45a90be9 100644
--- a/sm5/atacmds.c
+++ b/sm5/atacmds.c
@@ -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;
diff --git a/sm5/atacmds.cpp b/sm5/atacmds.cpp
index 22e9afc28..3b156ca72 100644
--- a/sm5/atacmds.cpp
+++ b/sm5/atacmds.cpp
@@ -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;
-- 
GitLab