From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756767AbbJVRHf (ORCPT ); Thu, 22 Oct 2015 13:07:35 -0400 Received: from smtprelay0208.hostedemail.com ([216.40.44.208]:54310 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751508AbbJVRHe (ORCPT ); Thu, 22 Oct 2015 13:07:34 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::,RULES_HIT:41:355:379:541:599:800:960:966:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3867:3870:3871:3873:4321:4385:5007:6261:7875:7903:8603:10004:10400:10848:10967:11232:11658:11914:12043:12296:12517:12519:12555:12740:13069:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: can50_5ed2f51d1930b X-Filterd-Recvd-Size: 2237 Date: Thu, 22 Oct 2015 13:07:29 -0400 From: Steven Rostedt To: Arnaldo Carvalho de Melo Cc: Scott Wood , , Dave Chinner Subject: Re: [PATCH] tools lib traceevent: Support %ps/%pS Message-ID: <20151022130729.7b0c17ee@gandalf.local.home> In-Reply-To: <20150831211637.GA12848@home.buserror.net> References: <20150831211637.GA12848@home.buserror.net> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fell through the abyss of my INBOX. Arnaldo, can you take this. Acked-by: Steven Rostedt -- Steve On Mon, 31 Aug 2015 16:16:37 -0500 Scott Wood wrote: > Commits such as 65dd297ac25565 ("xfs: %pF is only for function > pointers") caused a regression because pretty_print() didn't support > %ps/%pS. The current %pf/%pF implementation in pretty_print() is what > %ps/%pS is supposed to do, so use the same code for %ps/%pS. > > Addressing the incorrect %pf/%pF implementation is beyond the scope of > this patch. > > Signed-off-by: Scott Wood > --- > tools/lib/traceevent/event-parse.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c > index cc25f05..f05e5b0 100644 > --- a/tools/lib/traceevent/event-parse.c > +++ b/tools/lib/traceevent/event-parse.c > @@ -4761,8 +4761,8 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event > else > ls = 2; > > - if (*(ptr+1) == 'F' || > - *(ptr+1) == 'f') { > + if (*(ptr+1) == 'F' || *(ptr+1) == 'f' || > + *(ptr+1) == 'S' || *(ptr+1) == 's') { > ptr++; > show_func = *ptr; > } else if (*(ptr+1) == 'M' || *(ptr+1) == 'm') {