From 9ac6ade6b6346528fbf15cad88c192644128513f Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Mon, 13 Jan 2003 12:49:06 +0000
Subject: [PATCH] Added Attribute 240: head flying hours

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@445 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/CHANGELOG   | 3 ++-
 sm5/atacmds.c   | 5 ++++-
 sm5/atacmds.cpp | 5 ++++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/sm5/CHANGELOG b/sm5/CHANGELOG
index a3815d91e..cb84798c5 100644
--- a/sm5/CHANGELOG
+++ b/sm5/CHANGELOG
@@ -1,6 +1,6 @@
 CHANGELOG for smartmontools
 
-$Id: CHANGELOG,v 1.84 2003/01/12 10:23:28 ballen4705 Exp $
+$Id: CHANGELOG,v 1.85 2003/01/13 12:49:06 ballen4705 Exp $
 
 Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
 
@@ -33,6 +33,7 @@ NOTES FOR FUTURE RELEASES: see TODO file.
 
 CURRENT RELEASE (see VERSION file in this directory):
 
+  [BA] Added Attribute 240 "head flying hours"
 
 smartmontools-5.1.1
 
diff --git a/sm5/atacmds.c b/sm5/atacmds.c
index 1deb312ee..f77683c6d 100644
--- a/sm5/atacmds.c
+++ b/sm5/atacmds.c
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include "atacmds.h"
 
-const char *CVSid1="$Id: atacmds.c,v 1.49 2003/01/04 17:34:16 pjwilliams Exp $" CVSID1;
+const char *CVSid1="$Id: atacmds.c,v 1.50 2003/01/13 12:49:06 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
@@ -922,6 +922,9 @@ void ataPrintSmartAttribName(char *out, unsigned char id, unsigned char *defs){
   case 231:
     name="Temperature_Celsius";
     break;
+  case 240:
+    name="Head flying hours";
+    break;
   default:
     name="Unknown_Attribute";
     break;
diff --git a/sm5/atacmds.cpp b/sm5/atacmds.cpp
index 6ee100e92..543377bb7 100644
--- a/sm5/atacmds.cpp
+++ b/sm5/atacmds.cpp
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include "atacmds.h"
 
-const char *CVSid1="$Id: atacmds.cpp,v 1.49 2003/01/04 17:34:16 pjwilliams Exp $" CVSID1;
+const char *CVSid1="$Id: atacmds.cpp,v 1.50 2003/01/13 12:49:06 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
@@ -922,6 +922,9 @@ void ataPrintSmartAttribName(char *out, unsigned char id, unsigned char *defs){
   case 231:
     name="Temperature_Celsius";
     break;
+  case 240:
+    name="Head flying hours";
+    break;
   default:
     name="Unknown_Attribute";
     break;
-- 
GitLab