diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-09-11 23:13:21 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-09-11 23:13:21 +0000 |
commit | 23b8f9c3a44e6be249911b97c4cf02da601be519 (patch) | |
tree | d475856169c8a08001e1f8813408ed71bdc14197 /include | |
parent | 38a3773e8ef84bd18fcf266df4e697e431c73882 (diff) | |
download | sg3_utils-23b8f9c3a44e6be249911b97c4cf02da601be519.tar.gz |
sg_vpd: decode some WDC/Hitachi vendor VPD pages; sg_modes: accept acronym for page/subpage codes; attempted 1.43 release
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@789 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r-- | include/sg_cmds_basic.h | 6 | ||||
-rw-r--r-- | include/sg_lib.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/sg_cmds_basic.h b/include/sg_cmds_basic.h index fe194fce..4fb0ddf7 100644 --- a/include/sg_cmds_basic.h +++ b/include/sg_cmds_basic.h @@ -107,7 +107,7 @@ int sg_ll_mode_select6_v2(int sg_fd, bool pf, bool rtd, bool sp, * -1 -> other failure */ int sg_ll_mode_select10(int sg_fd, bool pf, bool sp, void * paramp, int param_len, bool noisy, int verbose); -/* v2 adds RTD (revert to defaults) bi, added in spc5r11 */ +/* v2 adds RTD (revert to defaults) bit, added in spc5r11 */ int sg_ll_mode_select10_v2(int sg_fd, bool pf, bool rtd, bool sp, void * paramp, int param_len, bool noisy, int verbose); @@ -291,8 +291,8 @@ int sg_msense_calc_length(const uint8_t * resp, int resp_len, /* Fetches current, changeable, default and/or saveable modes pages as * indicated by pcontrol_arr for given pg_code and sub_pg_code. If - * mode6==0 then use MODE SENSE (10) else use MODE SENSE (6). If - * flexible set and mode data length seems wrong then try and + * mode6 is true then use MODE SENSE (6) else use MODE SENSE (10). If + * flexible true and mode data length seems wrong then try and * fix (compensating hack for bad device or driver). pcontrol_arr * should have 4 elements for output of current, changeable, default * and saved values respectively. Each element should be NULL or diff --git a/include/sg_lib.h b/include/sg_lib.h index 83eeb72c..e860b926 100644 --- a/include/sg_lib.h +++ b/include/sg_lib.h @@ -332,7 +332,7 @@ const char * sg_get_sfs_str(uint16_t sfs_code, int peri_type, int buff_len, * structures that are sent across the wire. The 'FIS register' structure is * used to move a command from a SATA host to device, but the ATA 'command' * is not the first byte. So it is harder to say what will happen if a - * FIS structure is presented as a SCSI command, hopfully there is a low + * FIS structure is presented as a SCSI command, hopefully there is a low * probability this function will yield true in that case. */ bool sg_is_scsi_cdb(const uint8_t * cdbp, int clen); @@ -364,7 +364,7 @@ extern FILE * sg_warnings_strm; void sg_set_warnings_strm(FILE * warnings_strm); -/* The following "print" functions send ACSII to 'sg_warnings_strm' file +/* The following "print" functions send ASCII to 'sg_warnings_strm' file * descriptor (default value is stderr). 'leadin' is string prepended to * each line printed out, NULL treated as "". */ void sg_print_command(const uint8_t * command); @@ -560,7 +560,7 @@ bool sg_is_big_endian(); /* Returns true if byte sequence starting at bp with a length of b_len is * all zeros (for sg_all_zeros()) or all 0xff_s (for sg_all_ffs()); - * otherwise returns false. If bp is NULL ir b_len <= 0 returns false. */ + * otherwise returns false. If bp is NULL or b_len <= 0 returns false. */ bool sg_all_zeros(const uint8_t * bp, int b_len); bool sg_all_ffs(const uint8_t * bp, int b_len); |