diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-08-16 23:49:38 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-08-20 12:50:44 +0200 |
commit | a18f562913aaebf4587531fb40082718ec504f7a (patch) | |
tree | 53d511412d048527841970095db54d8433bd2653 /libdm/dm-tools | |
parent | 30a98e4d6710a543692d40d11428ae4baea11b7b (diff) | |
download | lvm2-a18f562913aaebf4587531fb40082718ec504f7a.tar.gz |
dmsetup: debug print
Udev debugging is a bit tricky, so to more easily pair cookie ID,
which is the lowest 16 bit - print cookie as hexa number.
This simplify pairing of processed cookies while the 'higher bit flags'
are changed for the same cookie.
Diffstat (limited to 'libdm/dm-tools')
-rw-r--r-- | libdm/dm-tools/dmsetup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c index 928b59906..a38df6bad 100644 --- a/libdm/dm-tools/dmsetup.c +++ b/libdm/dm-tools/dmsetup.c @@ -1695,6 +1695,7 @@ static int _udevcomplete(CMD_ARGS) if (!(cookie = _get_cookie_value(argv[0]))) return_0; + printf("DM_COOKIE_COMPLETED=0x%-10x", cookie); /* * Strip flags from the cookie and use cookie magic instead. * If the cookie has non-zero prefix and the base is zero then |