summaryrefslogtreecommitdiffstats
path: root/atasmart.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-03 22:46:19 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-03 22:46:19 +0200
commit659d98ee3391f09108de188eb58ea76f74e60f7f (patch)
tree5065ccfd3c7dc7566a8dc810715165a87ce2beb6 /atasmart.c
parent0e07e7f1be6cee31243fa21fc2b3f0c018c58aff (diff)
add a simple string pool generator
Diffstat (limited to 'atasmart.c')
-rw-r--r--atasmart.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/atasmart.c b/atasmart.c
index 2f1222f..f9eb0c8 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -698,6 +698,12 @@ typedef struct SkSmartAttributeInfo {
SkSmartAttributeUnit unit;
} SkSmartAttributeInfo;
+#ifndef STRINGPOOL
+#define P(x) x
+#endif
+
+/* %STRINGPOOLSTART% */
+
/* This data is stolen from smartmontools */
static const SkSmartAttributeInfo const attribute_info[255] = {
[1] = { "raw-read-error-rate", SK_SMART_ATTRIBUTE_UNIT_NONE },
@@ -749,6 +755,8 @@ static const SkSmartAttributeInfo const attribute_info[255] = {
[250] = { "read-error-retry-rate", SK_SMART_ATTRIBUTE_UNIT_NONE }
};
+/* %STRINGPOOLSTOP% */
+
static void make_pretty(SkSmartAttributeParsedData *a) {
uint64_t fourtyeight;