aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2019-08-29 00:15:08 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2019-08-29 00:15:08 +0000
commitb8a9d0f9070ee4a0f10c7d2e779655bffbfe1624 (patch)
tree45c9d8fe86fc79abccfe6d40f221da341d144f6f /include
parentabf4073cf5d973125dd384bc42f7338ec7e49c48 (diff)
downloadsg3_utils-b8a9d0f9070ee4a0f10c7d2e779655bffbfe1624.tar.gz
add sg_get_elem_status utility; inhex folder; some NVMe 1.4; some zbc realms
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@830 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.in1
-rw-r--r--include/sg_lib.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/Makefile.in b/include/Makefile.in
index 2e96a5fd..6ee60f64 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -291,6 +291,7 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
+runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
diff --git a/include/sg_lib.h b/include/sg_lib.h
index f6eda9db..f1256794 100644
--- a/include/sg_lib.h
+++ b/include/sg_lib.h
@@ -574,7 +574,8 @@ int hex2str(const uint8_t * b_str, int len, const char * leadin, int format,
* line or a comma, space or tab separated list of bytes. If no_space is
* set then a string of ACSII hex digits is expected, 2 per byte. Everything
* from and including a '#' on a line is ignored. Returns 0 if ok, or an
- * error code. */
+ * error code. If the error code is SG_LIB_LBA_OUT_OF_RANGE then mp_arr
+ * would be exceeded and both mp_arr and mp_arr_len are written to. */
int sg_f2hex_arr(const char * fname, bool as_binary, bool no_space,
uint8_t * mp_arr, int * mp_arr_len, int max_arr_len);