From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757673AbaHZLvO (ORCPT ); Tue, 26 Aug 2014 07:51:14 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:53783 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754442AbaHZLvN (ORCPT ); Tue, 26 Aug 2014 07:51:13 -0400 Date: Tue, 26 Aug 2014 17:21:00 +0530 From: Sudip Mukherjee To: Takashi Iwai Cc: Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound: pci: ctxfi: prink replacement Message-ID: <20140826115100.GA21572@sudip-PC> References: <1409048004-19838-1-git-send-email-sudipm.mukherjee@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 26, 2014 at 12:33:28PM +0200, Takashi Iwai wrote: > At Tue, 26 Aug 2014 15:43:24 +0530, > Sudip Mukherjee wrote: > > > > printk replaced with corresponding pr_err and pr_alert > > > > Signed-off-by: Sudip Mukherjee > > --- > > > > Initially started by copy-paste but as Takashi suggested it was done by a script. > > bash script is as follows : > > > > OLD="printk(KERN_ERR \?" > > OLD1="printk(KERN_ALERT \?" > > NEW="pr_err(" > > NEW1="pr_alert(" > > TFILE="/tmp/out.tmp.$$" > > for f in *.c > > do > > sed "s/$OLD/$NEW/g" "$f" > $TFILE && mv $TFILE "$f" > > sed "s/$OLD1/$NEW1/g" "$f" > $TFILE && mv $TFILE "$f" > > done > > All these can be a single call of sed :) is it? I will try to see .. > > > this patch will generate a warning from checkpatch for an unnecessary space before new line and has not been fixed as this patch is only for printk replacement. > > Better to put such information into the changelog. > > Do you have the patch reformatting the broken lines, too? > If yes, I'll wait for it, as we should apply both such patches at > once. > I will send you the broken string reformatting patch . thanks sudip > > Takashi