I think the proper fix is the to apply the"reduce stack footprint printing bdev names"series and then just use the new printf specifier to print the bdevname.