From 400444efd4e3c2cd758aee250556c84e052634dc Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 19 Jan 2018 13:08:58 +0000 Subject: add hex2stdout(), hex2stderr() and hex2str(); add testing/sg_tst_nvme; clean Makefile.freebsd in examples/ and testing/; NVMe error processing git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@745 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_raw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sg_raw.c') diff --git a/src/sg_raw.c b/src/sg_raw.c index 9ea07065..a19dda36 100644 --- a/src/sg_raw.c +++ b/src/sg_raw.c @@ -1,7 +1,7 @@ /* * A utility program originally written for the Linux OS SCSI subsystem. * - * Copyright (C) 2000-2017 Ingo van Lil + * Copyright (C) 2000-2018 Ingo van Lil * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ #include "sg_pr2serr.h" #include "sg_unaligned.h" -#define SG_RAW_VERSION "0.4.20 (2017-12-29)" +#define SG_RAW_VERSION "0.4.21 (2018-01-18)" #define DEFAULT_TIMEOUT 20 #define MIN_SCSI_CDBSZ 6 @@ -543,7 +543,7 @@ main(int argc, char *argv[]) } else { if (op->datain_file == NULL && !op->datain_binary) { pr2serr("Received %d bytes of data:\n", data_len); - dStrHexErr((const char *)dxfer_buffer_in, data_len, 0); + hex2stderr(dxfer_buffer_in, data_len, 0); } else { const char * cp = "stdout"; -- cgit v1.2.3