----- Original Message ----- > Hi Dave, > > Dave Anderson wrote on Wed, Apr 01, 2020: > > > I didn't post that v2 back in Feb because I wasn't totally happy with > > > it; I can't say I now am but might as well get your take on it... > > > > What part of this patch aren't you happy about? > > It's mostly style really - I don't like that we're calling in twice in > datatype_info(), because member_to_datatype() doesn't really fill in the > datatype_member struct and only fills in dm->member and offset. > At a naive read, I would expect member_to_datatype to fill in the whole dm... > > Functionally I tested it, it's a bit slower than my original version but > not enough to be a valid argument here; it's much better than nothing so > if you're happy with this let's go with it :) Works for me -- queued for crash-7.2.9: https://github.com/crash-utility/crash/commit/42fba6524ce01b6cecb4cd2cac8f0a50d79b1420 Thanks, Dave > > I will probably want to follow up with a second patch for raw_data_dump > to add DISPLAY_32/16 flags if the len requested is < word size but it's > not directly related to this patch... > > > Cheers, > -- > Dominique > > > -- > Crash-utility mailing list > Crash-utility@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/crash-utility > -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility