From: Ian Campbell Subject: Re: [PATCH 3/7] common/vsprintf: Add %ps and %pS format specifier support Date: Tue, 5 Nov 2013 10:39:52 +0000 Message-ID: <1383647992.13961.42.camel@kazak.uk.xensource.com> References: <1383600624-6345-1-git-send-email-andrew.cooper3@citrix.com> <1383600624-6345-4-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383600624-6345-4-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Jan Beulich , Xen-devel List-Id: xen-devel@lists.xenproject.org On Mon, 2013-11-04 at 21:30 +0000, Andrew Cooper wrote: > +All parameters to a %p option should be enclosed with the _p() macro For numerical arguments, sure. Why for things that are already pointers? > +Symbol/Function pointers: > + > + %ps Symbol name only > + %pS Symbol name + offset / function length Perhaps give examples? > + In the case that an appropriate symbol name can't be found, %p[sS] will > + fall back to '%p' and print the address in hex. In the common case the hex value will already be printed previously, but I suppose this is harmless. Ian.