From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755952Ab2CSFjm (ORCPT ); Mon, 19 Mar 2012 01:39:42 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:53142 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755126Ab2CSFjk (ORCPT ); Mon, 19 Mar 2012 01:39:40 -0400 Message-ID: <1332135577.9873.8.camel@joe2Laptop> Subject: Re: [PATCH 2/9] ext4: Use pr_fmt and pr_ From: Joe Perches To: "Ted Ts'o" Cc: Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 18 Mar 2012 22:39:37 -0700 In-Reply-To: <20120319045514.GQ31682@thunk.org> References: <20120319045514.GQ31682@thunk.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-03-19 at 00:55 -0400, Ted Ts'o wrote: > On Thu, Mar 15, 2012 at 05:07:30PM -0700, Joe Perches wrote: > > Use a more current logging style. > Oh, just for yucks, I did a quick check: > % git grep printk | wc -l > 71266 > % git grep pr_ | wc -l > 29552 > (and there are no doubt some false positives when grepping for "pr_") As there are for printk. I use "\bpr_(emerg|crit|alert|err|notice|warn|warning|info|debug)\b" and "\bprintk\b" or -w I did write "more current" and not predominate as there are large blocks of historical crud. You might try the same test on current code in the last couple of years or so. pr_ was introduced October 2007 by commit 1f7c8234c7a68 $ git log -p --since=2-years-ago | \ grep -P "^\+.*\bpr_(emerg|crit|alert|err|notice|warn|warning|info|debug)\b" | \ wc -l 22704 $ git log -p --since=2-years-ago | \ grep -P "^\+.*\bprintk\b" | \ wc -l 24899 A lot of that was original submissions of older out-of-tree drivers with printk that were later converted to pr_ or dev_, etc. In an aside: Gads, I need a faster netbook, that took 10's of minutes to produce... Any suggestions? cheers, Joe