summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2022-08-24 19:19:56 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2022-09-02 17:55:13 +0200
commit0d9c8ec3a456e68ed96ccb1af8a3cb9908e09689 (patch)
tree554e43b65c8b9c7e074b3f32588979584c72ad3a
parentdc9fcb045dfb9a360076eb3777bf3405105ccfe9 (diff)
downloadstrace-0d9c8ec3a456e68ed96ccb1af8a3cb9908e09689.tar.gz
sg_io_v3, sg_io_v4: use print_char
-rw-r--r--src/sg_io_v3.c6
-rw-r--r--src/sg_io_v4.c3
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)) {