aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/sg_chk_asc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/sg_chk_asc.c b/utils/sg_chk_asc.c
index fb1a9be8..46ff8608 100644
--- a/utils/sg_chk_asc.c
+++ b/utils/sg_chk_asc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2010 Douglas Gilbert.
+ * Copyright (c) 2006-2012 Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
@@ -25,7 +25,7 @@
* http://www.t10.org/lists/asc-num.txt
*/
-static char * version_str = "1.03 20100312";
+static char * version_str = "1.04 20120313";
#define MAX_LINE_LEN 1024
@@ -166,6 +166,13 @@ printf("\"%s\",\n", b);
// fprintf(stderr, "file: asc=%x acsq=%x strlen=%d %s\n", asc, ascq, num, cp);
// if (num < 20)
// continue;
+ if ((num > 6) &&
+ ((0 == memcmp("ASC", cp, 3)) ||
+ (0 == memcmp("vendor", cp, 6)))) {
+ fprintf(stderr, "%x,%x differ, ref: %s, sg_lib: "
+ "<missing>\n", asc, ascq, b);
+ continue;
+ }
if (num > 20) {
cp += 18;
num -= 18;