From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH 4/4] Input-gameport: Replace some printk() calls by pr_info() in joydump_connect() Date: Sat, 24 Sep 2016 09:13:30 -0700 Message-ID: <1474733610.23838.2.camel@perches.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: SF Markus Elfring , linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall List-Id: linux-input@vger.kernel.org On Sat, 2016-09-24 at 15:50 +0200, SF Markus Elfring wrote: > * Prefer usage of the macro "pr_info" over the interface "printk" >  in this function. > * Reduce number of output function calls. Did you test this? I doubt it. > diff --git a/drivers/input/joystick/joydump.c b/drivers/input/joystick/joydump.c [] > @@ -57,27 +57,29 @@ static int joydump_connect(struct gameport *gameport, struct gameport_driver *dr > >   unsigned long flags; > >   unsigned char u; >   > > - printk(KERN_INFO "joydump: ,------------------ START ----------------.\n"); > > - printk(KERN_INFO "joydump: | Dumping: %30s |\n", gameport->phys); > > - printk(KERN_INFO "joydump: | Speed: %28d kHz |\n", gameport->speed); > > + pr_info(",------------------ START ----------------.\n" > > + "| Dumping: %30s |\n" > > + "| Speed: %28d kHz |\n", > > + gameport->phys, > > + gameport->speed); Not the same output.