From 919290b79eb6649d6d05242180ddb3944ca9521b Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 24 May 2018 01:13:38 +0000 Subject: add SG_LIB_LOGIC_ERROR and SG_LIB_CONTRADICT; implement across many utilities and increase usage of sg_convert_errno() git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@774 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_reset_wp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sg_reset_wp.c') diff --git a/src/sg_reset_wp.c b/src/sg_reset_wp.c index 8af91d4b..dbf2495c 100644 --- a/src/sg_reset_wp.c +++ b/src/sg_reset_wp.c @@ -35,7 +35,7 @@ * device. Based on zbc-r04c.pdf . */ -static const char * version_str = "1.11 20180513"; +static const char * version_str = "1.11 20180523"; #define SG_ZONING_OUT_CMDLEN 16 #define RESET_WRITE_POINTER_SA 0x4 @@ -208,7 +208,7 @@ main(int argc, char * argv[]) if ((! zid_given) && (! all)) { pr2serr("either the --zone=ID or --all option is required\n"); usage(); - return SG_LIB_SYNTAX_ERROR; + return SG_LIB_CONTRADICT; } if (NULL == device_name) { pr2serr("missing device name!\n"); -- cgit v1.2.3