diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-06-03 23:59:56 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-06-03 23:59:56 +0000 |
commit | e05f7acda57fbbbad555df38fef89aa70447b590 (patch) | |
tree | eeb77582446b28c0b89f2415f8a0a34eef3e1fc4 /lib/sg_pt_osf1.c | |
parent | 14a6fbe3500a5ead474126ded5e0f1df8dd88ade (diff) | |
download | sg3_utils-e05f7acda57fbbbad555df38fef89aa70447b590.tar.gz |
sg_decode sense: add --err=ES; sg_dd, sgp_dd, sgm_dd: add --dry-run and --verbose options; introduce SG3_UTILS_DSENSE environment variable; sg_lib: add sg_nvme_desc2sense(), sg_build_sense_buffer(), and pr2ws()
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@777 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_osf1.c')
-rw-r--r-- | lib/sg_pt_osf1.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/sg_pt_osf1.c b/lib/sg_pt_osf1.c index a140a407..35ca067c 100644 --- a/lib/sg_pt_osf1.c +++ b/lib/sg_pt_osf1.c @@ -26,6 +26,7 @@ #include "sg_pt.h" #include "sg_lib.h" +#include "sg_pr2serr.h" #define OSF1_MAXDEV 64 @@ -65,25 +66,6 @@ struct sg_pt_base { struct sg_pt_osf1_scsi impl; }; -#if defined(__GNUC__) || defined(__clang__) -static int pr2ws(const char * fmt, ...) - __attribute__ ((format (printf, 1, 2))); -#else -static int pr2ws(const char * fmt, ...); -#endif - - -static int -pr2ws(const char * fmt, ...) -{ - va_list args; - int n; - - va_start(args, fmt); - n = vfprintf(sg_warnings_strm ? sg_warnings_strm : stderr, fmt, args); - va_end(args); - return n; -} /* Returns >= 0 if successful. If error in Unix returns negated errno. */ |