From df6eb4025bee46e2f5ec70561d58a2cb27d211a9 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Sat, 17 Mar 2012 11:19:11 +0000 Subject: 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 --- utils/sg_chk_asc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'utils') 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: " + "\n", asc, ascq, b); + continue; + } if (num > 20) { cp += 18; num -= 18; -- cgit v1.2.3