From: Colin McCabe Subject: XDR print? Date: Sun, 6 Dec 2009 16:39:05 -0800 Message-ID: <436f52800912061639p4be31dc5yc15aea4b92db5065@mail.gmail.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Xp7aGOIS0zusv6IXp5fb5tOczwdFY+XnTExzKycMsHo=; b=Cn3Y0/UUwZno2+Eoj7fxA11VQsbhNeL9VV0teapZiKn1H4Vzndq7QwI04AXpZ/k/JU k9n9nek473cvjJo/AEShlMiXqX07sO1GkAqYb6rPZx3oDo6XtW3GSLbPeNCIaJR3P2Nb Ix8GxEK9Xx62/z3d1H38I3mOFGBj4n+HG39CA= Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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