commit | abd2fda38003f61f50e5b4ed4f77f7997d7172ac | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <dvlasenk@redhat.com> | Mon Nov 11 12:31:18 2013 +0100 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Mon Nov 11 12:31:18 2013 +0100 |
tree | 0d5f7ef4ee30de7230762481dee8ffdc266d1337 | |
parent | ab24d5182847b52095efb129bbd47dfdc1f21662 [diff] |
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>