Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752747AbbBJQzn (ORCPT ); Tue, 10 Feb 2015 11:55:43 -0500 Received: from smtprelay0103.hostedemail.com ([216.40.44.103]:49073 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752445AbbBJQzm (ORCPT ); Tue, 10 Feb 2015 11:55:42 -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:1541:1593:1594:1711:1730:1747:1777:1792:2393:2551:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3872:4321:5007:6119:6261:7576:10004:10400:10848:11026:11232:11658:11914:12043:12050:12438:12517:12519:12740:13069:13095:13311:13357: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: can09_31695ba2c154e X-Filterd-Recvd-Size: 2467 Message-ID: <1423587337.8339.3.camel@perches.com> Subject: Re: [PATCH] scsi: megaraid_sas: Prevent future %p disaster From: Joe Perches To: Kashyap Desai Cc: Rasmus Villemoes , Sumit Saxena , Uday Lingala , "James E.J. Bottomley" , "PDL,MEGARAIDLINUX" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 10 Feb 2015 08:55:37 -0800 In-Reply-To: References: <1423233221-27069-1-git-send-email-linux@rasmusvillemoes.dk> 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: 1559 Lines: 46 On Tue, 2015-02-10 at 22:16 +0530, Kashyap Desai wrote: > Acked-by: Kashyap Desai > > > -----Original Message----- > > From: Rasmus Villemoes [mailto:linux@rasmusvillemoes.dk] > > Sent: Friday, February 06, 2015 8:04 PM [] > > There is currently no %po format extension, so currently the letters > "on" are > > simply skipped and the pointer is printed as expected (while missing the > word > > on). However, it is probably only a matter of time before someone comes > up > > with a %po extension, at which point this is likely to fail > spectacularly. Nice tool Rasmus > > diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c [] > > @@ -3105,7 +3105,7 @@ megasas_internal_reset_defer_cmds(struct > > megasas_instance *instance) > > for (i = 0; i < max_cmd; i++) { > > cmd = instance->cmd_list[i]; > > if (cmd->sync_cmd == 1 || cmd->scmd) { > > - printk(KERN_NOTICE "megasas: moving > > cmd[%d]:%p:%d:%p" > > + printk(KERN_NOTICE "megasas: moving > > cmd[%d]:%p:%d:%p " > > "on the defer queue as > internal\n", > > defer_index, cmd, cmd->sync_cmd, cmd- > > >scmd); > > It'd probably be nicer to coalesce the format. printk(KERN_NOTICE "megasas: moving cmd[%d]:%p:%d:%p on the defer queue as internal\n", defer_ndex, cmd, cmd->sync, cmd->scmd); -- 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/