qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Maksim Kozlov <m.kozlov@samsung.com>
Cc: kyungmin.park@samsung.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/4] ARM: exynos4210_pmu: changes in PRINT_DEBUG macro set.
Date: Fri, 20 Jul 2012 15:29:24 +0100	[thread overview]
Message-ID: <CAFEAcA-pt4GDCv47phGV5ezPxuu830gJcOXptX3PjpM6w=V8Zw@mail.gmail.com> (raw)
In-Reply-To: <1341589767-9895-3-git-send-email-m.kozlov@samsung.com>

On 6 July 2012 16:49, Maksim Kozlov <m.kozlov@samsung.com> wrote:

> Subject: ARM: exynos4210_pmu: changes in PRINT_DEBUG macro set.

This is a rather vague summary.

> It make possible to set DEBUG_PMU and DEBUG_PMU_EXTEND

"This makes it possible"

> independently of each other

The patch doesn't actually do this, though -- if you set
DEBUG_PMU_EXTEND you always get DEBUG_PMU's effects even
if DEBUG_PMU isn't set.

Plus you have two versions of the "do nothing" version of
PRINT_DEBUG_EXTEND, which isn't very pretty.

The patch also introduces the new PRINT_ERROR without mentioning
it in the commit message.

> +#if DEBUG_PMU || DEBUG_PMU_EXTEND
> +
> +    #define  PRINT_DEBUG(fmt, args...)  \

Indenting preprocessor defines with space before the "#" rather
than after definitely puts you in the minority:

$ git grep '^#\s\+define' | wc -l
862
$ git grep '^\s\+#define' | wc -l
126

-- PMM

  reply	other threads:[~2012-07-20 14:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 15:49 [Qemu-devel] [PATCH 0/4] ARM: exynos4210 PMU modifications Maksim Kozlov
2012-07-06 15:49 ` [Qemu-devel] [PATCH 1/4] ARM: exynos4210_pmu: just formatting changes Maksim Kozlov
2012-07-20 14:05   ` Peter Maydell
2012-07-06 15:49 ` [Qemu-devel] [PATCH 2/4] ARM: exynos4210_pmu: changes in PRINT_DEBUG macro set Maksim Kozlov
2012-07-20 14:29   ` Peter Maydell [this message]
2012-07-06 15:49 ` [Qemu-devel] [PATCH 3/4] ARM: exynos4210_pmu: Introduced exynos4210_pmu_get_register_index Maksim Kozlov
2012-07-20 13:53   ` Peter Maydell
2012-07-06 15:49 ` [Qemu-devel] [PATCH 4/4] ARM: exynos4210_pmu: Add software reset support Maksim Kozlov
2012-07-12 16:44   ` Maksim Kozlov

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='CAFEAcA-pt4GDCv47phGV5ezPxuu830gJcOXptX3PjpM6w=V8Zw@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=kyungmin.park@samsung.com \
    --cc=m.kozlov@samsung.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).