]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
BC3450 board: change debug code to using debug()
authorWolfgang Denk <wd@denx.de>
Sun, 22 Jul 2012 07:56:06 +0000 (09:56 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 22 Jul 2012 07:56:06 +0000 (09:56 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
board/bc3450/cmd_bc3450.c

index a9e490252d1cb13e9f4ec3752b6883cf02c1cbe0..935769b825b3a3323b074bf43506588ff3721044 100644 (file)
  */
 #if defined(CONFIG_CMD_BSP)
 
-#undef DEBUG
-#ifdef DEBUG
-# define dprintf(fmt,args...)  printf(fmt, ##args)
-#else
-# define dprintf(fmt,args...)
-#endif
-
 /*
  * Definitions for DS1620 chip
  */
@@ -129,7 +122,7 @@ int sm501_gpio_init (void)
        static int init_done = 0;
 
        if (init_done) {
-/*     dprintf("sm501_gpio_init: nothing to be done.\n"); */
+               debug("sm501_gpio_init: nothing to be done.\n");
                return 1;
        }
 
@@ -162,7 +155,8 @@ int sm501_gpio_init (void)
                (PWR_OFF | BUZZER | FP_DATA_TRI);
 
        init_done = 1;
-/*  dprintf("sm501_gpio_init: done.\n"); */
+       debug("sm501_gpio_init: done.\n");
+
        return 0;
 }