From patchwork Wed Jul 9 13:04:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 33311 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55715208CF for ; Wed, 9 Jul 2014 13:06:12 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id b13sf4515221wgh.2 for ; Wed, 09 Jul 2014 06:06:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=LrH7h+ws1dNDSDmqoJOB2h007Aar98vwVhzIARAT4lk=; b=l+cKzZ3vUKzQpP088QnBV1Zg1UFqDDCOE5i2TH+9QQ+PxKnVs0k5k+5MifRfOick4y CDrNzgr5D/PVFxcEvHqPHm/AOFOaH/779CnPThnzQP2lqXziSegZmCKs+vWkJ4qKkm3f qRMcLfZaQ7LDsNzythhaX53P1OkAs1caRvM7wthzLav1Y3ygfLJp0EJHO60hm9ppfV1a ys/5x4q9ErDoplyt5NDFeULOlCFOpKhwV6NqFI0pGfd1lh2tm0TaCIZxTmOhfliNMO/9 dZ3u+xCGsikweAENCcgeep7fe3IiYkp9uHtUjmChWQftR6NsUL0OGiEvkptezRhw9Cjk oW8w== X-Gm-Message-State: ALoCoQnPN6yzzjIgT+81NmP6D2n9637YIml4G++K1IJtmu4rzXY7HECfkz3/wIn8PoNNMy9/NJpD X-Received: by 10.180.208.37 with SMTP id mb5mr1073460wic.6.1404911171238; Wed, 09 Jul 2014 06:06:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.53 with SMTP id q50ls2632110qgd.2.gmail; Wed, 09 Jul 2014 06:06:11 -0700 (PDT) X-Received: by 10.221.25.210 with SMTP id rj18mr39620901vcb.5.1404911171106; Wed, 09 Jul 2014 06:06:11 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id w12si3418183vci.23.2014.07.09.06.06.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Jul 2014 06:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id ij19so6827119vcb.37 for ; Wed, 09 Jul 2014 06:06:11 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr32767542vdc.8.1404911171018; Wed, 09 Jul 2014 06:06:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp46201vcb; Wed, 9 Jul 2014 06:06:10 -0700 (PDT) X-Received: by 10.66.159.34 with SMTP id wz2mr21635716pab.96.1404911169021; Wed, 09 Jul 2014 06:06:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si7323582pdo.141.2014.07.09.06.06.08; Wed, 09 Jul 2014 06:06:08 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755633AbaGINF5 (ORCPT + 28 others); Wed, 9 Jul 2014 09:05:57 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:62011 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755218AbaGINES (ORCPT ); Wed, 9 Jul 2014 09:04:18 -0400 Received: by mail-ig0-f176.google.com with SMTP id r10so1828870igi.3 for ; Wed, 09 Jul 2014 06:04:17 -0700 (PDT) X-Received: by 10.43.172.74 with SMTP id nx10mr46282076icc.37.1404911057649; Wed, 09 Jul 2014 06:04:17 -0700 (PDT) Received: from localhost.localdomain (c-24-245-18-91.hsd1.mn.comcast.net. [24.245.18.91]) by mx.google.com with ESMTPSA id lo3sm15293753igb.22.2014.07.09.06.04.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Jul 2014 06:04:17 -0700 (PDT) From: Alex Elder To: akpm@linux-foundation.org Cc: ak@linux.intel.com, bp@suse.de, jack@suse.cz, john.stultz@linaro.org, pmladek@suse.cz, rostedt@goodmis.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] printk: rename DEFAULT_MESSAGE_LOGLEVEL Date: Wed, 9 Jul 2014 08:04:13 -0500 Message-Id: <1404911056-29064-2-git-send-email-elder@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404911056-29064-1-git-send-email-elder@linaro.org> References: <1404911056-29064-1-git-send-email-elder@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: elder@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This commit: a8fe19eb kernel/printk: use symbolic defines for console loglevels makes consistent use of symbolic values for printk() log levels. The naming scheme used is different from the one used for DEFAULT_MESSAGE_LOGLEVEL though. Change that symbol name to be MESSAGE_LOGLEVEL_DEFAULT for consistency. Note that we don't rename CONFIG_DEFAULT_MESSAGE_LOGLEVEL (to avoid breaking existing config files that might reference it). Signed-off-by: Alex Elder --- include/linux/printk.h | 2 +- kernel/printk/printk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/printk.h b/include/linux/printk.h index 319ff7e..3d1ccad 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -31,7 +31,7 @@ static inline const char *printk_skip_level(const char *buffer) } /* printk's without a loglevel use this.. */ -#define DEFAULT_MESSAGE_LOGLEVEL CONFIG_DEFAULT_MESSAGE_LOGLEVEL +#define MESSAGE_LOGLEVEL_DEFAULT CONFIG_DEFAULT_MESSAGE_LOGLEVEL /* We show everything that is MORE important than this.. */ #define CONSOLE_LOGLEVEL_SILENT 0 /* Mum's the word */ diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 13e839d..ac2b64e 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -56,7 +56,7 @@ int console_printk[4] = { CONSOLE_LOGLEVEL_DEFAULT, /* console_loglevel */ - DEFAULT_MESSAGE_LOGLEVEL, /* default_message_loglevel */ + MESSAGE_LOGLEVEL_DEFAULT, /* default_message_loglevel */ CONSOLE_LOGLEVEL_MIN, /* minimum_console_loglevel */ CONSOLE_LOGLEVEL_DEFAULT, /* default_console_loglevel */ };