Skip to contentSkip to conversation

XDR print?

DISCUSSION Colin McCabe 2 participants 2 messages Dec 7, 2009

lore
Share & tools
lore
#0 lore raw

I'm wondering if there's a function that will take a buffer full of XDR data and an xdrproc_t, and print out a human readable version of the data.
It seems like an obvious debugging tool, but I can't find a reference to anything like this in the XDR docs.

I guess the obvious workaround is to deserialize the data into a struct and manually print out all the fields of the struct. But it seems like since we've gone through the trouble of describing everything in XDR, there should be an auto-printer.

cheers,
Colin

#1 lore raw
Quoted 5 lines · Colin McCabe

I'm wondering if there's a function that will take a buffer full of XDR data and an xdrproc_t, and print out a human readable version of the data.
It seems like an obvious debugging tool, but I can't find a reference to anything like this in the XDR docs.

Yeah, I'm not aware of any.

Plus, I tend to think that automated print-outs would not be useful for anything beyond a first-pass attempt. Most debugging output would likely be tuned to be less verbose, yet more useful, as field experience informs our choices.

Jeff