public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: avorontsov@ru.mvista.com
Cc: linuxppc-dev@ozlabs.org, dwmw2@infradead.org,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH v2 4/4] Freescale enhanced Local Bus Controller FCM NAND support.
Date: Fri, 14 Dec 2007 13:33:41 -0600	[thread overview]
Message-ID: <4762DA95.90000@freescale.com> (raw)
In-Reply-To: <20071214192446.GA3355@localhost.localdomain>

Anton Vorontsov wrote:
> On Fri, Dec 14, 2007 at 12:56:24PM -0600, Scott Wood wrote:
>> +#if 0
>> +#define ELBC_NAND_DEBUG_LVL 6
>> +#endif
>> +
>> +#ifdef ELBC_NAND_DEBUG_LVL
>> +static int fcm_debug_level = ELBC_NAND_DEBUG_LVL;
>> +#define FCM_DEBUG(n, args...)		\
>> +	do {					\
>> +		if (n <= fcm_debug_level)	\
>> +			pr_dbg(args);	\
>> +	} while(0)
>> +#else
>> +#define FCM_DEBUG(n, dev, args...) do { } while(0)
>> +#endif
> 
> Only 1, 2 and 5 debug levels are used. Maybe better use dev_dbg
> and dev_vdbg instead?

Yeah, probably...

> Btw, checkpatch result:
> total: 69 errors, 14 warnings, 1236 lines checked

Most of those are errors in checkpatch, wherein it fails to understand 
the difference between aligning with spaces (good) and indenting with 
spaces (bad).  Checkpatch spits out so many of those that other things 
get lost in the noise, so I don't usually bother to run it.

I also do not understand the allergy to C99 comments in the Linux 
community, though I'll change the few that slipped in by accident.

I'll fix the few legitimate ones.

> This isn't very friendly to the people going to look into.

You should have seen what it looked like before I touched it. :-P

> Maybe this desires its own header?

It can be factored out if anything else ever uses it.

-Scott

  reply	other threads:[~2007-12-14 19:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14 18:56 [PATCH v2 4/4] Freescale enhanced Local Bus Controller FCM NAND support Scott Wood
2007-12-14 19:24 ` Anton Vorontsov
2007-12-14 19:33   ` Scott Wood [this message]
2007-12-14 19:59     ` Anton Vorontsov
2007-12-14 21:40       ` Arnd Bergmann

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=4762DA95.90000@freescale.com \
    --to=scottwood@freescale.com \
    --cc=avorontsov@ru.mvista.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linuxppc-dev@ozlabs.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