public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Olof Johansson <olof@lixom•net>
To: Baole Ni <baolex.ni@intel•com>
Cc: mchehab@kernel•org, maurochehab@gmail•com, mchehab@infradead•org,
	mchehab@redhat•com, m.chehab@samsung•com, egor@pasemi•com,
	dougthompson@xmission•com, bp@alien8•de,
	linuxppc-dev@lists•ozlabs.org, linux-edac@vger•kernel.org,
	linux-kernel@vger•kernel.org, chuansheng.liu@intel•com,
	lee.jones@linaro•org
Subject: Re: [PATCH 0157/1285] Replace numeric parameter like 0444 with macro
Date: Tue, 2 Aug 2016 11:54:47 -0700	[thread overview]
Message-ID: <20160802185447.GA5288@localhost> (raw)
In-Reply-To: <20160802104515.24206-1-baolex.ni@intel.com>

On Tue, Aug 02, 2016 at 06:45:15PM +0800, Baole Ni wrote:
> I find that the developers often just specified the numeric value
> when calling a macro which is defined with a parameter for access permission.
> As we know, these numeric value for access permission have had the corresponding macro,
> and that using macro can improve the robustness and readability of the code,
> thus, I suggest replacing the numeric parameter with the macro.

Am I the only one who find the readability to be MUCH better for the
numeric values?


-Olof

  reply	other threads:[~2016-08-02 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-02 10:45 [PATCH 0157/1285] Replace numeric parameter like 0444 with macro Baole Ni
2016-08-02 18:54 ` Olof Johansson [this message]
2016-08-02 19:11   ` Segher Boessenkool

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160802185447.GA5288@localhost \
    --to=olof@lixom$(echo .)net \
    --cc=baolex.ni@intel$(echo .)com \
    --cc=bp@alien8$(echo .)de \
    --cc=chuansheng.liu@intel$(echo .)com \
    --cc=dougthompson@xmission$(echo .)com \
    --cc=egor@pasemi$(echo .)com \
    --cc=lee.jones@linaro$(echo .)org \
    --cc=linux-edac@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=m.chehab@samsung$(echo .)com \
    --cc=maurochehab@gmail$(echo .)com \
    --cc=mchehab@infradead$(echo .)org \
    --cc=mchehab@kernel$(echo .)org \
    --cc=mchehab@redhat$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox