mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
logging: Add LCK_REVERT_MODE to flags printed by decode_flags()
The decode_flags() function does not yet know about the LCK_REVERT_MODE flag.
This commit is contained in:
parent
09064cc2db
commit
8b49d61d83
@ -131,14 +131,15 @@ static const char *decode_flags(unsigned char flags)
|
|||||||
static char buf[128];
|
static char buf[128];
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
len = sprintf(buf, "0x%x ( %s%s%s%s%s%s%s)", flags,
|
len = sprintf(buf, "0x%x ( %s%s%s%s%s%s%s%s)", flags,
|
||||||
flags & LCK_PARTIAL_MODE ? "PARTIAL_MODE|" : "",
|
flags & LCK_PARTIAL_MODE ? "PARTIAL_MODE|" : "",
|
||||||
flags & LCK_MIRROR_NOSYNC_MODE ? "MIRROR_NOSYNC|" : "",
|
flags & LCK_MIRROR_NOSYNC_MODE ? "MIRROR_NOSYNC|" : "",
|
||||||
flags & LCK_DMEVENTD_MONITOR_MODE ? "DMEVENTD_MONITOR|" : "",
|
flags & LCK_DMEVENTD_MONITOR_MODE ? "DMEVENTD_MONITOR|" : "",
|
||||||
flags & LCK_ORIGIN_ONLY_MODE ? "ORIGIN_ONLY|" : "",
|
flags & LCK_ORIGIN_ONLY_MODE ? "ORIGIN_ONLY|" : "",
|
||||||
flags & LCK_TEST_MODE ? "TEST|" : "",
|
flags & LCK_TEST_MODE ? "TEST|" : "",
|
||||||
flags & LCK_CONVERT ? "CONVERT|" : "",
|
flags & LCK_CONVERT ? "CONVERT|" : "",
|
||||||
flags & LCK_DMEVENTD_MONITOR_IGNORE ? "DMEVENTD_MONITOR_IGNORE|" : "");
|
flags & LCK_DMEVENTD_MONITOR_IGNORE ? "DMEVENTD_MONITOR_IGNORE|" : "",
|
||||||
|
flags & LCK_REVERT_MODE ? "REVERT|" : "");
|
||||||
|
|
||||||
if (len > 1)
|
if (len > 1)
|
||||||
buf[len - 2] = ' ';
|
buf[len - 2] = ' ';
|
||||||
|
Loading…
Reference in New Issue
Block a user