Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755271AbbBTTPu (ORCPT ); Fri, 20 Feb 2015 14:15:50 -0500 Received: from smtprelay0147.hostedemail.com ([216.40.44.147]:41105 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755224AbbBTTPs (ORCPT ); Fri, 20 Feb 2015 14:15:48 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3868:3870:3871:3872:3874:4321:4605:5007:6261:6742:7904:10004:10400:10450:10455:10848:11026:11232:11473:11658:11914:12114:12438:12517:12519:12740:13069:13311:13357:19904:19999: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: crack66_6c5488882784c X-Filterd-Recvd-Size: 2830 Message-ID: <1424459742.18211.13.camel@perches.com> Subject: Re: [PATCH v2] x86: fix output of show_stack_log_lvl() From: Joe Perches To: Linus Torvalds Cc: Masami Hiramatsu , Thomas Gleixner , Andy Lutomirski , Francesco Ruggeri , Steven Rostedt , Andrey Ryabinin , Andrew Morton , Peter Anvin , Adrien Schildknecht , Linux Kernel Mailing List , Alexander van Heukelum , Borislav Petkov , Andrey Konovalov , the arch/x86 maintainers , Ingo Molnar Date: Fri, 20 Feb 2015 11:15:42 -0800 In-Reply-To: References: <1424385796-28910-1-git-send-email-adrien+dev@schischi.me> <1424399661-20327-1-git-send-email-adrien+dev@schischi.me> <20150219234548.2e4412cb@grimm.local.home> <20150220120506.1c3812a8@grimm.local.home> <1424454016.18211.8.camel@perches.com> <1424455404.18211.10.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 36 On Fri, 2015-02-20 at 10:51 -0800, Linus Torvalds wrote: > On Fri, Feb 20, 2015 at 10:03 AM, Joe Perchens wrote: > > > > True. Also fix the pr_debug/dev_dbg cases > > like drivers/dma/ppc4xx/adma.c: > > Yup, that's just garbage, and doesn't actually do what is intended. > > Also, rather than > > pr_debug("\n%s(%d):\nsrc: ", __func__, id); > for (i = 0; i < src_cnt; i++) > pr_debug("\t0x%016llx ", src[i]); > ... > > t should probably just use > > pr_debug("%s(%d):\n", __func__, id); > pr_debug("%src: %*phN\n", src_cnt*sizeof(*src), src); > > or similar. Yes, that will just print out the byte-stream rather than > do it in chunkcs of 64-bit entries, but.. That won't work for > 64 byte output. This would probably be better: print_hex_dump_debug("src: ", DUMP_PREFIX_OFFSET, 16, sizeof(*src), src, src_cnt * sizeof(*src), false); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/