diff options
| author | Kelly Yancey <kbyanc@FreeBSD.org> | 2000-08-08 06:24:17 +0000 |
|---|---|---|
| committer | Kelly Yancey <kbyanc@FreeBSD.org> | 2000-08-08 06:24:17 +0000 |
| commit | 7e32b20d95deb61abb1200c43282ba7204a191c0 (patch) | |
| tree | dd4e230e323f672061c11ac8dad5d605e609b248 /lib | |
| parent | 4f0682b0f3ca473b0f5ef1da4c63f2c0df054ada (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libcam/cam_cdbparse.3 | 4 | ||||
| -rw-r--r-- | lib/libcam/scsi_cmdparse.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcam/cam_cdbparse.3 b/lib/libcam/cam_cdbparse.3 index 5b9b073f73fc..0edbb6a222d1 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 ad1cbb0e93e9..37d76cd6409a 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++; \ |
