aboutsummaryrefslogtreecommitdiff
path: root/src/sg_get_config.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2013-07-30 23:58:53 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2013-07-30 23:58:53 +0000
commit88732e65ad3158fb372c2077ea47ba3016f5cb17 (patch)
tree24fe93526ed6846754d9cb39350573d65d95dc6a /src/sg_get_config.c
parent736d019894943c1ba75b6f9051a7e40ee8f061c8 (diff)
downloadsg3_utils-88732e65ad3158fb372c2077ea47ba3016f5cb17.tar.gz
sg_lib: add dStrHexErr() and dStrHexStr(); sg_xcopy work (and in sg_cmds_extra.c)
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@503 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_get_config.c')
-rw-r--r--src/sg_get_config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sg_get_config.c b/src/sg_get_config.c
index 801c095c..0d0ebbd4 100644
--- a/src/sg_get_config.c
+++ b/src/sg_get_config.c
@@ -873,10 +873,10 @@ decode_feature(int feature, unsigned char * ucp, int len)
}
break;
default:
- printf(" Unknown feature [0x%x], version=%d persist=%d, "
- "current=%d\n", feature, ((ucp[2] >> 2) & 0xf),
- !!(ucp[2] & 0x2), !!(ucp[2] & 0x1));
- dStrHex((const char *)ucp, len, 1);
+ fprintf(stderr, " Unknown feature [0x%x], version=%d persist=%d, "
+ "current=%d\n", feature, ((ucp[2] >> 2) & 0xf),
+ !!(ucp[2] & 0x2), !!(ucp[2] & 0x1));
+ dStrHexErr((const char *)ucp, len, 1);
break;
}
}