]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
env_flash: Disable debug print statements
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 22 Oct 2010 05:24:52 +0000 (00:24 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 23 Oct 2010 20:10:14 +0000 (22:10 +0200)
With debug the follow is printed:
  => saveenv
  Saving Environment to Flash...
  Data to save 0x18000
  Data (start 0xfff48000, len 0x18000) saved at 0x7fe63f20
  Protect off FFF40000 ... FFF5FFFF
  Un-Protected 1 sectors
  Erasing Flash...
  . done
  Erased 1 sectors
  Writing to Flash... Restoring the rest of data to 0xfff48000 len 0x18000
  done
  Protected 1 sectors
  =>

Without debug:
  => saveenv
  Saving Environment to Flash...
  Un-Protected 1 sectors
  Erasing Flash...
  . done
  Erased 1 sectors
  Writing to Flash... done
  Protected 1 sectors
  =>

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
common/env_flash.c

index 1da78b7102e4c13b3589abb9a18e04d71bd4a927..54c0bfec7624192276886dbfa0c886fc13052a02 100644 (file)
@@ -82,9 +82,6 @@ uchar env_get_char_spec(int index)
        return (*((uchar *)(gd->env_addr + index)));
 }
 
-#undef debug
-#define debug printf
-
 #ifdef CONFIG_ENV_ADDR_REDUND
 
 int  env_init(void)