Use tprints instead of tprintf in a few more places

* btrfs.c (btrfs_print_qgroup_inherit, btrfs_print_tree_search,
btrfs_ioctl): Replace tprintf with tprints for printing strings without
format specifiers.
* net.c (print_group_req): Likewise.
* scsi.c (scsi_ioctl): Likewise.
* term.c (decode_termios, decode_termio): Likewise.
* userfaultfd.c (uffdio_ioctl): Likewise.
This commit is contained in:
Дмитрий Левин 2016-10-02 16:20:05 +00:00
parent 7fa26e1712
commit cce5aaef1e
5 changed files with 15 additions and 15 deletions

View File

@ -383,7 +383,7 @@ btrfs_print_qgroup_inherit(struct tcb *tcp, const unsigned long qgi_addr)
if (umove_or_printaddr(tcp, qgi_addr, &inherit))
return;
tprintf("{flags=");
tprints("{flags=");
printflags64(btrfs_qgroup_inherit_flags, inherit.flags,
"BTRFS_QGROUP_INHERIT_???");
tprintf(", num_qgroups=%" PRI__u64 ", num_ref_copies=%" PRI__u64
@ -423,7 +423,7 @@ btrfs_print_tree_search(struct tcb *tcp, struct btrfs_ioctl_search_key *key,
uint64_t buf_addr, uint64_t buf_size, bool print_size)
{
if (entering(tcp)) {
tprintf("{key={tree_id=");
tprints("{key={tree_id=");
btrfs_print_objectid(key->tree_id);
if (key->min_objectid != BTRFS_FIRST_FREE_OBJECTID ||
@ -1322,7 +1322,7 @@ MPERS_PRINTER_DECL(int, btrfs_ioctl,
btrfs_print_qgroup_inherit(tcp,
(unsigned long) args.qgroup_inherit);
}
tprintf(", name=");
tprints(", name=");
print_quoted_string(args.name, sizeof(args.name),
QUOTE_0_TERMINATED);
tprints("}");

2
net.c
View File

@ -702,7 +702,7 @@ print_group_req(struct tcb *tcp, long addr, int len)
tprintf("{gr_interface=%u, gr_group=", greq.gr_interface);
print_sockaddr(tcp, &greq.gr_group, sizeof(greq.gr_group));
tprintf("}");
tprints("}");
}
#endif /* MCAST_JOIN_GROUP */

2
scsi.c
View File

@ -275,7 +275,7 @@ scsi_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
else
print_sg_io_res(tcp, iid, arg);
}
tprintf("}");
tprints("}");
return RVAL_DECODED | 1;
}
}

8
term.c
View File

@ -67,10 +67,10 @@ decode_termios(struct tcb *tcp, const long addr)
if (!(tios.c_lflag & ICANON))
tprintf("c_cc[VMIN]=%d, c_cc[VTIME]=%d, ",
tios.c_cc[VMIN], tios.c_cc[VTIME]);
tprintf("c_cc=\"");
tprints("c_cc=\"");
for (i = 0; i < NCCS; i++)
tprintf("\\x%02x", tios.c_cc[i]);
tprintf("\"}");
tprints("\"}");
}
static void
@ -109,10 +109,10 @@ decode_termio(struct tcb *tcp, const long addr)
tprintf("c_cc[VMIN]=%d, c_cc[VTIME]=%d, ",
tio.c_cc[VMIN], tio.c_cc[VTIME]);
#endif /* !_VMIN */
tprintf("c_cc=\"");
tprints("c_cc=\"");
for (i = 0; i < NCC; i++)
tprintf("\\x%02x", tio.c_cc[i]);
tprintf("\"}");
tprints("\"}");
}
static void

View File

@ -77,7 +77,7 @@ uffdio_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
printflags64(uffd_api_flags, ua.ioctls,
"_UFFDIO_???");
}
tprintf("}");
tprints("}");
}
return 1;
}
@ -107,14 +107,14 @@ uffdio_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
tprints(", ");
if (umove_or_printaddr(tcp, arg, &ur))
return RVAL_DECODED | 1;
tprintf("{range=");
tprints("{range=");
tprintf_uffdio_range(&ur.range);
tprintf(", mode=");
tprints(", mode=");
printflags64(uffd_register_mode_flags, ur.mode,
"UFFDIO_REGISTER_MODE_???");
} else {
if (!syserror(tcp) && !umove(tcp, arg, &ur)) {
tprintf(", ioctls=");
tprints(", ioctls=");
printflags64(uffd_register_ioctl_flags,
ur.ioctls, "UFFDIO_???");
}
@ -138,9 +138,9 @@ uffdio_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
tprints(", ");
if (umove_or_printaddr(tcp, arg, &uz))
return RVAL_DECODED | 1;
tprintf("{range=");
tprints("{range=");
tprintf_uffdio_range(&uz.range);
tprintf(", mode=");
tprints(", mode=");
printflags64(uffd_zeropage_flags, uz.mode,
"UFFDIO_ZEROPAGE_???");
} else {