]> granicus.if.org Git - strace/commit
sys_io_submit: simplify iocb_cmd_lookup() helper.
authorDenys Vlasenko <dvlasenk@redhat.com>
Mon, 11 Nov 2013 11:31:18 +0000 (12:31 +0100)
committerDenys Vlasenko <dvlasenk@redhat.com>
Mon, 11 Nov 2013 11:31:18 +0000 (12:31 +0100)
commitabd2fda38003f61f50e5b4ed4f77f7997d7172ac
tree0d5f7ef4ee30de7230762481dee8ffdc266d1337
parentab24d5182847b52095efb129bbd47dfdc1f21662
sys_io_submit: simplify iocb_cmd_lookup() helper.

This helper returns two values (a string and an enum).
The caller prints the string. It's simpler to just print
the string in the caller itself. This eliminates
"return by reference" and more importantly, an intermediate
static string buffer for the string result.

Since function of the helper is different now,
it is renamed to tprint_lio_opcode().

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
desc.c