From patchwork Thu May 29 02:54:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 4258651 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3FCEE9F32B for ; Thu, 29 May 2014 02:55:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83114202F8 for ; Thu, 29 May 2014 02:55:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7C8E20279 for ; Thu, 29 May 2014 02:55:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbaE2CzM (ORCPT ); Wed, 28 May 2014 22:55:12 -0400 Received: from mail-yh0-f52.google.com ([209.85.213.52]:62548 "EHLO mail-yh0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932228AbaE2CzK (ORCPT ); Wed, 28 May 2014 22:55:10 -0400 Received: by mail-yh0-f52.google.com with SMTP id z6so9532759yhz.11 for ; Wed, 28 May 2014 19:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=BVL8QsnYDYNaorSXAeW0t+dbL+4foZD6PqwyqaOHpjQ=; b=y7Zw5sMpdvKu3+q/xkIs190xzJ3WwbXuhMgmdtZlj/DOHrGjg+IvA8F7TTyBrby+pa adkg+yKRXWh8uuy8Cme7EAuEHwrFcwgwv2+saWlomZLc0QPlo7KAzJLBWEpOqj6TT272 3w9wwsjINua1yQOE3iB/Cw49C81eNBNcwwB/m2x181g9/hvwxArZspGZkGM6WZk+5MEX s2WCTkUf0Pz1ilwnUN2HGPbHLGqqGGMvAxQauSUe14svSF7H49EjTYsaWmNRVFC3+qxl L7JHnkF7f/fTTvZOylncsUrg5pHa2XArunl2vW1cwEI3JDGIu23kQNIQY7oC3yDPB2ng qwjg== X-Received: by 10.236.44.41 with SMTP id m29mr5433403yhb.57.1401332109474; Wed, 28 May 2014 19:55:09 -0700 (PDT) Received: from [192.168.31.158] ([118.117.110.196]) by mx.google.com with ESMTPSA id 63sm30696745yhi.13.2014.05.28.19.55.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 19:55:08 -0700 (PDT) Message-ID: <5386A183.5030405@gmail.com> Date: Thu, 29 May 2014 10:54:59 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "J. Bruce Fields" , Trond Myklebust CC: Linux NFS Mailing List , kinglongmee@gmail.com Subject: [PATCH] SUNRPC: remove KERN_DEFAULT kernel loglevel from dfprintk Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When debugging, rpc prints messages for dprintk(KERN_WARNING ...) as, [ 2780.339988] ^A4nfsd: connect from unprivileged port: 0000:0000:0000:0000:0000:0000:0000:0001, port=35316 Because, it expends as printk(KERN_DEFAULT KERN_WARNING ...). Signed-off-by: Kinglong Mee --- include/linux/sunrpc/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index 9385bd7..742e2ac 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h @@ -42,14 +42,14 @@ extern unsigned int nlm_debug; # define dfprintk(fac, args...) \ do { \ ifdebug(fac) \ - printk(KERN_DEFAULT args); \ + printk(args); \ } while (0) # define dfprintk_rcu(fac, args...) \ do { \ ifdebug(fac) { \ rcu_read_lock(); \ - printk(KERN_DEFAULT args); \ + printk(args); \ rcu_read_unlock(); \ } \ } while (0)