aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2019-07-17 17:39:54 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2019-07-17 17:39:54 +0000
commit0fee5267c164066552e3fd4d553adca5236cad69 (patch)
tree67d3fdbf74facbde23480d22315c00b9406ef864 /include
parent80c24fa62fdd48618676fbd412981ce0da6fb7f8 (diff)
downloadsg3_utils-0fee5267c164066552e3fd4d553adca5236cad69.tar.gz
sg_ses: rename 'SAS SlimLine' to SlimSAS [ses4r02; sg_lib: sg_scsi_normalize_sense(): populate byte4,5,6; testing/sgh_dd
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@828 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r--include/sg_lib.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/sg_lib.h b/include/sg_lib.h
index ff162a61..f6eda9db 100644
--- a/include/sg_lib.h
+++ b/include/sg_lib.h
@@ -180,10 +180,10 @@ struct sg_scsi_sense_hdr {
uint8_t sense_key;
uint8_t asc;
uint8_t ascq;
- uint8_t byte4;
- uint8_t byte5;
+ uint8_t byte4; /* descriptor: SDAT_OVFL; fixed: lower three ... */
+ uint8_t byte5; /* ... bytes of INFO field */
uint8_t byte6;
- uint8_t additional_length;
+ uint8_t additional_length; /* zero for fixed format sense data */
};
/* Maps the salient data from a sense buffer which is in either fixed or
@@ -280,8 +280,8 @@ int sg_get_designation_descriptor_str(const char * leadin,
* is lead-in string (on each line) than may be NULL. skip_prefix avoids
* outputting: ' Locally assigned UUID: ' before the UUID. */
int sg_t10_uuid_desig2str(const uint8_t * dp, int dlen, int c_set,
- bool do_long, bool skip_prefix,
- const char * lip, int blen, char * b);
+ bool do_long, bool skip_prefix,
+ const char * lip, int blen, char * b);
/* Yield string associated with peripheral device type (pdt). Returns
* 'buff'. If 'pdt' out of range yields "bad pdt" string. */
@@ -465,7 +465,7 @@ bool sg_exit2str(int exit_status, bool longer, int b_len, char * b);
#define SG_LIB_CONTRADICT 31 /* error involving two or more cl options */
#define SG_LIB_LOGIC_ERROR 32 /* unexpected situation in code */
#define SG_LIB_WINDOWS_ERR 34 /* Windows error number don't fit in 7 bits so
- * map to a single value for exit statuses */
+ * map to a single value for exit statuses */
#define SG_LIB_OK_FALSE 36 /* no error, reporting false (cf. no error,
* reporting true is SG_LIB_OK_TRUE(0) ) */
#define SG_LIB_CAT_PROTECTION 40 /* subset of aborted command (for PI, DIF)