[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 17/23] xsplice: Print dependency and payloads build_id in the keyhandler.
On 12/02/16 18:05, Konrad Rzeszutek Wilk wrote: > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> > --- > 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |