Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757181AbcJGUt5 (ORCPT ); Fri, 7 Oct 2016 16:49:57 -0400 Received: from smtprelay0024.hostedemail.com ([216.40.44.24]:49908 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753989AbcJGUtu (ORCPT ); Fri, 7 Oct 2016 16:49:50 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1560:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3868:4321:5007:10004:10400:10848:11026:11232:11473:11657:11658:11914:12043:12114:12740:12760:13069:13095:13161:13229:13255:13311:13357:13439:14659:14721:21080:21433:21451:30012:30054:30070:30091,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,LFtime:1,LUA_SUMMARY:none X-HE-Tag: tail63_387c9465a3f10 X-Filterd-Recvd-Size: 1561 Message-ID: <1475873387.1945.23.camel@perches.com> Subject: Re: [PATCH 1/3] Staging: i4l: Warning "Prefer "pr_debug over printk(KERN_DEBUG... " fixed From: Joe Perches To: Harman Kalra , gregkh@linuxfoundation.org, sudipm.mukherjee@gmail.co Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Fri, 07 Oct 2016 13:49:47 -0700 In-Reply-To: <1475859476-3524-1-git-send-email-harman4linux@gmail.com> References: <20161005065219.GD11013@kroah.com> <1475859476-3524-1-git-send-email-harman4linux@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.0-2ubuntu1 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: 646 Lines: 16 On Fri, 2016-10-07 at 22:27 +0530, Harman Kalra wrote: > Warning "Prefer "pr_debug over printk(KERN_DEBUG... " and "few line more than 80 character" fixed The commit subject and message doesn't match the code change. > diff --git a/drivers/staging/i4l/icn/icn.h b/drivers/staging/i4l/icn/icn.h [] > @@ -54,7 +54,8 @@ > > /* some useful macros for debugging */ > #ifdef ICN_DEBUG_PORT > -#define OUTB_P(v, p) {printk(KERN_DEBUG "icn: outb_p(0x%02x,0x%03x)\n", v, p); outb_p(v, p);} > +#define OUTB_P(v, p) \ > + {printk(KERN_DEBUG "icn: outb_p(0x%02x,0x%03x)\n", v, p); outb_p(v, p); } This would be better with a do {...} while (0) guard