print_str ("inpfreq",           strmhz(buf, bd->bi_inpfreq));
        print_str ("vcofreq",           strmhz(buf, bd->bi_vcofreq));
 #endif
-#if defined(CFG_CMD_NET)
+#if defined(CONFIG_CMD_NET)
        puts ("ethaddr     =");
        for (i=0; i<6; ++i) {
                printf ("%c%02X", i ? ':' : ' ', bd->bi_enetaddr[i]);
 
        puts ("\nip_addr     = ");
        print_IPaddr (bd->bi_ip_addr);
-#endif /* CONFIG_CMD_NET */
+#endif
        printf ("\nbaudrate    = %d bps\n", bd->bi_baudrate);
 
        return 0;
 
 CFG_MCFRTC_BASE                -- provide base address for RTC in immap.h
 CFG_RTC_OSCILLATOR     -- define RTC clock frequency
 RTC_DEBUG              -- define to show RTC debug message
-CFG_CMD_DATE           -- enable to use date feature in u-boot
+CONFIG_CMD_DATE                -- enable to use date feature in u-boot
 
 CONFIG_MCFFEC          -- define to use common CF FEC driver
 CONFIG_NET_MULTI       -- define to use multi FEC in u-boot
 
                                                "2m(rootfs),"   \
                                                "-(user)";
 
-#if (CONFIG_COMMANDS & CFG_CMD_MII)
-#error MII commands don't work on iDMR board and sholud not be enabled.
-#endif /* (CONFIG_COMMANDS & CFG_CMD_MII) */
+#if defined(CONFIG_CMD_MII)
+#error "MII commands don't work on iDMR board and should not be enabled."
+#endif
 
 #endif /* _IDMR_H */