From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbbLIUhF (ORCPT ); Wed, 9 Dec 2015 15:37:05 -0500 Received: from mail-qg0-f47.google.com ([209.85.192.47]:33751 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750878AbbLIUhD (ORCPT ); Wed, 9 Dec 2015 15:37:03 -0500 MIME-Version: 1.0 In-Reply-To: <87si3b8jha.fsf@rasmusvillemoes.dk> References: <1449590868-19070-1-git-send-email-yamada.masahiro@socionext.com> <1449591386.3315.2.camel@perches.com> <1449594231.13275.2.camel@perches.com> <1449619439.18646.20.camel@perches.com> <1449689319.25389.28.camel@perches.com> <87si3b8jha.fsf@rasmusvillemoes.dk> Date: Wed, 9 Dec 2015 22:36:58 +0200 Message-ID: Subject: Re: [PATCH v2] of/address: replace printk() with pr_debug() / pr_err() From: Andy Shevchenko To: Rasmus Villemoes Cc: Joe Perches , Rob Herring , Andrew Morton , Masahiro Yamada , "devicetree@vger.kernel.org" , Frank Rowand , "linux-kernel@vger.kernel.org" , Grant Likely Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2015 at 10:17 PM, Rasmus Villemoes wrote: > On Wed, Dec 09 2015, Andy Shevchenko wrote: >> On Wed, Dec 9, 2015 at 9:28 PM, Joe Perches wrote: >>> +enum { >>> + DUMP_TYPE_CPU = 0, >> >> And still open this, do we need it? I think you may just mention in >> the documentation that default behaviour is CPU like. > > I think it's best to have a name for the default. In this case it's > unlikely to ever be relevant, but in general one could imagine stuff > like > > #ifdef THIS_OR_THAT > #define MY_DUMP_TYPE DUMP_TYPE_LE > #else > #define MY_DUMP_TYPE DUMP_TYPE_CPU > #endif > > which is a lot more readable than if the latter was a naked 0. Point taken. Though _CPU suggests user to think if it's equivalent to BE or LE. I'm wondering if _NATIVE is better? -- With Best Regards, Andy Shevchenko