diff options
-rw-r--r-- | src/sg_io_v3.c | 6 | ||||
-rw-r--r-- | src/sg_io_v4.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/sg_io_v3.c b/src/sg_io_v3.c index f37d6de05..7309bfb5b 100644 --- a/src/sg_io_v3.c +++ b/src/sg_io_v3.c @@ -21,6 +21,8 @@ typedef struct sg_io_hdr struct_sg_io_hdr; #include MPERS_DEFS +#include "print_utils.h" + #include "xlat/sg_io_info.h" #ifdef HAVE_SCSI_SG_H @@ -55,7 +57,7 @@ decode_request(struct tcb *const tcp, const kernel_ulong_t arg) tprint_struct_begin(); tprints_field_name("interface_id"); - tprints("'S'"); + print_char('S', SCF_QUOTES); tprint_struct_next(); if (umoven_or_printaddr(tcp, arg + skip_iid, sizeof(sg_io) - skip_iid, &sg_io.dxfer_direction)) { @@ -168,7 +170,7 @@ decode_request(struct tcb *const tcp, const kernel_ulong_t arg) { tprint_struct_begin(); tprints_field_name("interface_id"); - tprints("'S'"); + print_char('S', SCF_QUOTES); tprint_struct_next(); tprint_more_data_follows(); tprint_struct_end(); diff --git a/src/sg_io_v4.c b/src/sg_io_v4.c index 5087860c8..6c9c92bc4 100644 --- a/src/sg_io_v4.c +++ b/src/sg_io_v4.c @@ -8,6 +8,7 @@ #include "defs.h" #include <linux/bsg.h> +#include "print_utils.h" #include "xlat/bsg_protocol.h" #include "xlat/bsg_subprotocol.h" #include "xlat/bsg_flags.h" @@ -38,7 +39,7 @@ decode_request(struct tcb *const tcp, const kernel_ulong_t arg) tprint_struct_begin(); tprints_field_name("guard"); - tprints("'Q'"); + print_char('Q', SCF_QUOTES); tprint_struct_next(); if (umoven_or_printaddr(tcp, arg + skip_iid, sizeof(sg_io) - skip_iid, &sg_io.protocol)) { |