From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 5/5] OneNAND support
Date: Sun, 09 Sep 2007 01:09:17 +0200 [thread overview]
Message-ID: <20070908230917.C9ECB24653@gemini.denx.de> (raw)
In-Reply-To: Your message of "Fri, 07 Sep 2007 10:01:37 +0900." <20070907010137.GA20130@party>
In message <20070907010137.GA20130@party> you wrote:
> [PATCH] OneNAND support
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
> index 3d91e99..f8eca87 100644
> --- a/include/config_cmd_all.h
> +++ b/include/config_cmd_all.h
> @@ -59,6 +59,7 @@
> #define CONFIG_CMD_NAND /* NAND support */
> #define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */
> #define CONFIG_CMD_NFS /* NFS support */
> +#define CONFIG_CMD_ONENAND /* OneNAND support */
NAK.
CONFIG_CMD_ONENAND is definitely NOT a candiate for config_cmd_all.h
> +++ b/include/onenand_uboot.h
...
> +#define DEBUG_LEVEL 2
This should probably be 0 for production code?
> +#ifdef ONENAND_DEBUG
> +#define DEBUG(level, args...) \
> +do { \
> + if (level <= DEBUG_LEVEL) { \
> + printf(args); \
> + } \
> +} while (0)
> +#else
> +#define DEBUG(level, args...) do { } while (0)
> +#endif
Please do not reinvent yoru own debug macros, please use the existing
ones instead.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The X11 source code style is ATROCIOUS and should not be used as a
model." - Doug Gwyn
next prev parent reply other threads:[~2007-09-08 23:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 1:01 [U-Boot-Users] [PATCH 5/5] OneNAND support Kyungmin Park
2007-09-08 23:09 ` Wolfgang Denk [this message]
2007-09-10 1:51 ` Kyungmin Park
2007-09-10 7:13 ` Wolfgang Denk
2007-09-10 7:32 ` Kyungmin Park
2007-09-10 18:45 ` Wolfgang Denk
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=20070908230917.C9ECB24653@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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