All of lore.kernel.org
 help / color / mirror / Atom feed
* XDR print?
@ 2009-12-07  0:39 Colin McCabe
  2009-12-07  1:03 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Colin McCabe @ 2009-12-07  0:39 UTC (permalink / raw)
  To: Project Hail List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: XDR print?
  2009-12-07  0:39 XDR print? Colin McCabe
@ 2009-12-07  1:03 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2009-12-07  1:03 UTC (permalink / raw)
  To: Colin McCabe; +Cc: Project Hail List

On 12/06/2009 07:39 PM, Colin McCabe wrote:
> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-07  1:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07  0:39 XDR print? Colin McCabe
2009-12-07  1:03 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.