Patchwork [U-Boot] env_nand: Remove DEBUG definition

login
register
mail settings
Submitter Thomas Weber
Date Nov. 10, 2011, 8:10 a.m.
Message ID <1320912600-3170-1-git-send-email-weber@corscience.de>
Download mbox | patch
Permalink /patch/124816/
State Changes Requested
Delegated to: Scott Wood
Headers show

Comments

Thomas Weber - Nov. 10, 2011, 8:10 a.m.
When compiling with -DDEBUG enabled this caused a
warning about multiple definition of DEBUG.

Signed-off-by: Thomas Weber <weber@corscience.de>
---
 common/env_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Mike Frysinger - Nov. 10, 2011, 4:21 p.m.
On Thursday 10 November 2011 03:10:00 Thomas Weber wrote:
> --- a/common/env_nand.c
> +++ b/common/env_nand.c
> 
> -#define DEBUG
> +/* #define DEBUG */

just delete it and be done
-mike
Wolfgang Denk - Dec. 5, 2011, 10:03 p.m.
Dear Thomas Weber,

In message <1320912600-3170-1-git-send-email-weber@corscience.de> you wrote:
> When compiling with -DDEBUG enabled this caused a
> warning about multiple definition of DEBUG.
> 
> Signed-off-by: Thomas Weber <weber@corscience.de>
> ---
>  common/env_nand.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/common/env_nand.c b/common/env_nand.c
> index 14446a6..e71a229 100644
> --- a/common/env_nand.c
> +++ b/common/env_nand.c
> @@ -30,7 +30,7 @@
>   * MA 02111-1307 USA
>   */
>  
> -#define DEBUG
> +/* #define DEBUG */

No - please simply delete this.

Best regards,

Wolfgang Denk

Patch

diff --git a/common/env_nand.c b/common/env_nand.c
index 14446a6..e71a229 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -30,7 +30,7 @@ 
  * MA 02111-1307 USA
  */
 
-#define DEBUG
+/* #define DEBUG */
 
 #include <common.h>
 #include <command.h>