aboutsummaryrefslogtreecommitdiff
path: root/src/sg_xcopy.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-07-06 16:48:38 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-07-06 16:48:38 +0000
commit8b85eae099c9a554538b7051b0a047ddd0528554 (patch)
tree403772d5c315c866f0f8aa2cb1bdafa93b008ad8 /src/sg_xcopy.c
parent3ef8550a26c95c97f9fdc4ef249a5767fd573e7a (diff)
downloadsg3_utils-8b85eae099c9a554538b7051b0a047ddd0528554.tar.gz
sg_pr2serr.h: add sg_scnpr() [like lk scnprintf()]; rescan-scsi-bus.sh code_manpage cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@780 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_xcopy.c')
-rw-r--r--src/sg_xcopy.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sg_xcopy.c b/src/sg_xcopy.c
index dcc32282..aa212eaa 100644
--- a/src/sg_xcopy.c
+++ b/src/sg_xcopy.c
@@ -68,7 +68,7 @@
#include "sg_unaligned.h"
#include "sg_pr2serr.h"
-static const char * version_str = "0.66 20180628";
+static const char * version_str = "0.67 20180705";
#define ME "sg_xcopy: "
@@ -402,21 +402,21 @@ dd_filetype_str(int ft, char * buff)
int off = 0;
if (FT_DEV_NULL & ft)
- off += snprintf(buff + off, 32, "null device ");
+ off += sg_scnpr(buff + off, 32, "null device ");
if (FT_SG & ft)
- off += snprintf(buff + off, 32, "SCSI generic (sg) device ");
+ off += sg_scnpr(buff + off, 32, "SCSI generic (sg) device ");
if (FT_BLOCK & ft)
- off += snprintf(buff + off, 32, "block device ");
+ off += sg_scnpr(buff + off, 32, "block device ");
if (FT_FIFO & ft)
- off += snprintf(buff + off, 32, "fifo (named pipe) ");
+ off += sg_scnpr(buff + off, 32, "fifo (named pipe) ");
if (FT_ST & ft)
- off += snprintf(buff + off, 32, "SCSI tape device ");
+ off += sg_scnpr(buff + off, 32, "SCSI tape device ");
if (FT_RAW & ft)
- off += snprintf(buff + off, 32, "raw device ");
+ off += sg_scnpr(buff + off, 32, "raw device ");
if (FT_OTHER & ft)
- off += snprintf(buff + off, 32, "other (perhaps ordinary file) ");
+ off += sg_scnpr(buff + off, 32, "other (perhaps ordinary file) ");
if (FT_ERROR & ft)
- snprintf(buff + off, 32, "unable to 'stat' file ");
+ sg_scnpr(buff + off, 32, "unable to 'stat' file ");
return buff;
}