not much gained in trying to make this a function  and macros are evil  so i am not sure there is a good way here  skip back a few patch sets to see some attempts at fixing this  but none look good natural  since this is just the dump code  i would prefer leaving it like this 