From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v3 17/23] xsplice: Print dependency and payloads build_id in the keyhandler. Date: Tue, 16 Feb 2016 20:20:57 +0000 Message-ID: <56C384A9.7040309@citrix.com> References: <1455300361-13092-1-git-send-email-konrad.wilk@oracle.com> <1455300361-13092-18-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aVm7J-00056X-Ph for xen-devel@lists.xenproject.org; Tue, 16 Feb 2016 20:21:01 +0000 In-Reply-To: <1455300361-13092-18-git-send-email-konrad.wilk@oracle.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: Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org, konrad@kernel.org, mpohlack@amazon.de, ross.lagerwall@citrix.com, jinsong.liu@alibaba-inc.com, Ian Campbell , Ian Jackson , Jan Beulich , Keir Fraser , Tim Deegan , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 12/02/16 18:05, Konrad Rzeszutek Wilk wrote: > Signed-off-by: Konrad Rzeszutek Wilk > --- > xen/common/xsplice.c | 36 ++++++++++++++++++++++++++++-------- > 1 file changed, 28 insertions(+), 8 deletions(-) > > diff --git a/xen/common/xsplice.c b/xen/common/xsplice.c > index 2ba5bb5..8c5557e 100644 > --- a/xen/common/xsplice.c > +++ b/xen/common/xsplice.c > @@ -101,6 +101,21 @@ static const char *state2str(int32_t state) > return names[state]; > } > > +static void xsplice_print_build_id(char *id, unsigned int len) > +{ > + unsigned int i; > + > + if ( !len ) > + return; > + > + for ( i = 0; i < len; i++ ) > + { > + uint8_t c = id[i]; > + printk("%02x", c); What about the already existing %*ph custom format? If the spaces are a problem we could introduce %*phN from Linux which has no spaces. The advantage of this is that it is a single call to printk, rather than many, and avoids the ability for a different cpu to interleave in the middle of a line. ~Andrew