diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2012-03-17 11:19:11 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2012-03-17 11:19:11 +0000 |
commit | df6eb4025bee46e2f5ec70561d58a2cb27d211a9 (patch) | |
tree | 22a2ff3246ad47369c97464e274ed8bff92da45d /utils | |
parent | 60c487d370cfbfa7d91bc777eba4277c00536430 (diff) | |
download | sg3_utils-df6eb4025bee46e2f5ec70561d58a2cb27d211a9.tar.gz |
sync with spc4r35; start on sat fixed sense
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@445 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'utils')
-rw-r--r-- | utils/sg_chk_asc.c | 11 |
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; |