summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libcam/cam_cdbparse.34
-rw-r--r--lib/libcam/scsi_cmdparse.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcam/cam_cdbparse.3 b/lib/libcam/cam_cdbparse.3
index 5b9b073..0edbb6a 100644
--- a/lib/libcam/cam_cdbparse.3
+++ b/lib/libcam/cam_cdbparse.3
@@ -444,9 +444,9 @@ function.
.It Fa val
is a void pointer to the value being passed into the function.
.It Fa count
-is the number of arguments being passed into the
+is the size of the value being passed into the
.Fn arg_put
-function. At present this will only be set to 1.
+function. The argument format determines the unit of measure.
.It Fa name
This is a text description of the field, if one was provided in the
.Fa fmt .
diff --git a/lib/libcam/scsi_cmdparse.c b/lib/libcam/scsi_cmdparse.c
index ad1cbb0..37d76cd6 100644
--- a/lib/libcam/scsi_cmdparse.c
+++ b/lib/libcam/scsi_cmdparse.c
@@ -119,7 +119,8 @@ do_buff_decode(u_int8_t *databuf, size_t len,
if (arg_put) \
(*arg_put)(puthook, (letter == 't' ? \
'b' : letter), \
- (void *)((long)(ARG)), 1, field_name); \
+ (void *)((long)(ARG)), width, \
+ field_name); \
else \
*(va_arg(ap, int *)) = (ARG); \
assigned++; \
OpenPOWER on IntegriCloud