diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-04-05 14:59:59 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-04-06 11:31:02 +0200 |
commit | 261a85ced94e2f4ed7c3f01d7d0a7624032e2697 (patch) | |
tree | bb39538fe1742eb412895ba36a7151721b9cd432 | |
parent | 5b2227c2c10c2f762e238fedb756850fe4ac5d5d (diff) | |
download | lvm2-261a85ced94e2f4ed7c3f01d7d0a7624032e2697.tar.gz |
libdm: improve debug message with ioctl
Make the debug message a less difficult to read:
Ioctl shows [ noopencount flush ] instead of cryptic [NF].
-rw-r--r-- | libdm/ioctl/libdm-iface.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index 6111cb0fe..8259a78a2 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -1814,7 +1814,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command, } log_debug_activation("dm %s %s%s %s%s%s %s%.0d%s%.0d%s" - "%s%c%c%s%s%s%s%s%s%s %.0" PRIu64 " %s [%u] (*%u)", + "%s[ %s%s%s%s%s%s%s%s%s] %.0" PRIu64 " %s [%u] (*%u)", _cmd_data_v4[dmt->type].name, dmt->new_uuid ? "UUID " : "", dmi->name, dmi->uuid, dmt->newname ? " " : "", @@ -1825,15 +1825,15 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command, dmt->minor > 0 ? dmt->minor : 0, dmt->major > 0 && dmt->minor == 0 ? "0" : "", dmt->major > 0 ? ") " : "", - dmt->no_open_count ? 'N' : 'O', - dmt->no_flush ? 'N' : 'F', - dmt->read_only ? "R" : "", - dmt->skip_lockfs ? "S " : "", - dmt->retry_remove ? "T " : "", - dmt->deferred_remove ? "D " : "", - dmt->secure_data ? "W " : "", - dmt->query_inactive_table ? "I " : "", - dmt->enable_checks ? "C" : "", + dmt->no_open_count ? "noopencount " : "opencount ", + dmt->no_flush ? "noflush " : "flush ", + dmt->read_only ? "readonly " : "", + dmt->skip_lockfs ? "skiplockfs " : "", + dmt->retry_remove ? "retryremove " : "", + dmt->deferred_remove ? "defferedremove " : "", + dmt->secure_data ? "securedata " : "", + dmt->query_inactive_table ? "inactive " : "", + dmt->enable_checks ? "enablechecks " : "", dmt->sector, _sanitise_message(dmt->message), dmi->data_size, retry_repeat_count); #ifdef DM_IOCTLS |