diff options
Diffstat (limited to 'lib/sg_cmds_extra.c')
-rw-r--r-- | lib/sg_cmds_extra.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/sg_cmds_extra.c b/lib/sg_cmds_extra.c index 232d55d6..90168969 100644 --- a/lib/sg_cmds_extra.c +++ b/lib/sg_cmds_extra.c @@ -24,6 +24,7 @@ #include "sg_cmds_extra.h" #include "sg_pt.h" #include "sg_unaligned.h" +#include "sg_pr2serr.h" #define SENSE_BUFF_LEN 64 /* Arbitrary, could be larger */ @@ -101,25 +102,6 @@ #define REPORT_REFERRALS_SA 0x13 #define EXTENDED_COPY_LID1_SA 0x0 -#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; -} static struct sg_pt_base * create_pt_obj(const char * cname) |