From: Zdenek Kabelac Date: Fri, 16 Aug 2019 21:49:38 +0000 (+0200) Subject: dmsetup: debug print X-Git-Tag: v2_03_06~159 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=a18f562913aaebf4587531fb40082718ec504f7a;p=lvm2.git 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. --- diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 2c0c7ec52..60a2b53c8 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.165 - ================================= + Add debug of dmsetup udevcomplete with hexa print DM_COOKIE_COMPLETED. Fix versioning of dm_stats_create_region and dm_stats_create_region. Version 1.02.163 - 15th June 2019 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