1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2019-08-16 23:49:38 +02:00
parent 30a98e4d67
commit a18f562913
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.165 - 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. Fix versioning of dm_stats_create_region and dm_stats_create_region.
Version 1.02.163 - 15th June 2019 Version 1.02.163 - 15th June 2019

View File

@ -1695,6 +1695,7 @@ static int _udevcomplete(CMD_ARGS)
if (!(cookie = _get_cookie_value(argv[0]))) if (!(cookie = _get_cookie_value(argv[0])))
return_0; return_0;
printf("DM_COOKIE_COMPLETED=0x%-10x", cookie);
/* /*
* Strip flags from the cookie and use cookie magic instead. * Strip flags from the cookie and use cookie magic instead.
* If the cookie has non-zero prefix and the base is zero then * If the cookie has non-zero prefix and the base is zero then