From 8b85eae099c9a554538b7051b0a047ddd0528554 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 6 Jul 2018 16:48:38 +0000 Subject: 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 --- src/sg_xcopy.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/sg_xcopy.c') 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; } -- cgit v1.2.3