aboutsummaryrefslogtreecommitdiff
path: root/src/sg_write_x.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-02-11 05:01:16 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-02-11 05:01:16 +0000
commit5bdce507b09d32f452a390c22cb98ae7f840c151 (patch)
tree40f080676d587b650cfa3133e7dcf3ab3084af0c /src/sg_write_x.c
parent4a5962a81447bb60cca7e51dd005b3bdaab1452b (diff)
downloadsg3_utils-5bdce507b09d32f452a390c22cb98ae7f840c151.tar.gz
fix compile error in sg_pt_win32.c when NVME_IGNORE; sg_raw: add --cmdfile=CF option
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@752 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_write_x.c')
-rw-r--r--src/sg_write_x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sg_write_x.c b/src/sg_write_x.c
index cf931925..2644bf78 100644
--- a/src/sg_write_x.c
+++ b/src/sg_write_x.c
@@ -1317,7 +1317,7 @@ do_write_x(int sg_fd, const void * dataoutp, int dout_len,
ret = sg_cmds_process_resp(ptvp, op->cdb_name, res, SG_NO_DATA_IN,
sense_b, true /*noisy */, vb, &sense_cat);
if (-1 == ret)
- ; /* general (OS) error like ioctl not recognized */
+ ret = sg_convert_errno(get_scsi_pt_os_err(ptvp));
else if (-2 == ret) {
switch (sense_cat) {
case SG_LIB_CAT_RECOVERED: