From: Minkyu Kang Date: Wed, 7 Apr 2010 06:23:56 +0000 (+0900) Subject: universal: change printf function to puts function X-Git-Tag: JD05_20100408 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61e6942c9c92fd2ae26f6c59809638f66e9623f5;p=kernel%2Fu-boot.git universal: change printf function to puts function Signed-off-by: Minkyu Kang --- diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 408bd16..0161132 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -717,11 +717,11 @@ static void check_auto_burn(void) char buf[64]; if (readl(magic_base) == 0x426f6f74) { /* ASICC: Boot */ - printf("Auto burning bootloader\n"); + puts("Auto burning bootloader\n"); count += sprintf(buf + count, "run updateb; "); } if (readl(magic_base + 0x04) == 0x4b65726e) { /* ASICC: Kern */ - printf("Auto burning kernel\n"); + puts("Auto burning kernel\n"); count += sprintf(buf + count, "run updatek; "); } @@ -943,7 +943,7 @@ static void check_battery(int mode) return; if (i2c_probe(addr)) { - printf("Can't found max17040 fuel gauge\n"); + puts("Can't found max17040 fuel gauge\n"); return; } @@ -981,7 +981,7 @@ static void check_mhl(void) /* set usb path */ if (i2c_probe(addr)) { - printf("Can't found MHL Chip\n"); + puts("Can't found MHL Chip\n"); return; } @@ -1011,7 +1011,7 @@ static int max8998_probe(void) i2c_set_bus_num(I2C_PMIC); if (i2c_probe(addr)) { - printf("Can't found max8998\n"); + puts("Can't found max8998\n"); return 1; } @@ -1255,7 +1255,7 @@ static void charger_en(int enable) return; if (!enable) { - printf("Disable the charger.\n"); + puts("Disable the charger.\n"); i2c_read(addr, 0x0D, 1, val, 1); val[0] &= ~(0x1); val[0] |= 0x1; @@ -1297,7 +1297,7 @@ static void into_charge_mode(void) max8998_clear_interrupt(); - printf("Charge Mode\n"); + puts("Charge Mode\n"); charger_en(charger_speed); #ifdef CONFIG_S5PC1XXFB @@ -1392,7 +1392,7 @@ static void into_charge_mode(void) wakeup_stat = do_sleep(&ctt, 0, 1, argv); } } else { - printf("\n\n\nERROR: this is not S5PC110.\n\n\n"); + puts("\n\n\nERROR: this is not S5PC110.\n\n\n"); return; } @@ -1479,7 +1479,7 @@ static int fsa9480_probe(void) } if (i2c_probe(addr)) { - printf("Can't found fsa9480\n"); + puts("Can't found fsa9480\n"); return 1; } @@ -1910,7 +1910,7 @@ void backlight_on(unsigned int onoff) addr = 0x76; if (i2c_probe(addr)) { if (i2c_probe(addr)) { - printf("Can't found s6d16a0x backlight i2c\n"); + puts("Can't found s6d16a0x backlight i2c\n"); return; } } @@ -2483,7 +2483,7 @@ void board_sleep_resume(void) /* Set ONOFF4 */ i2c_write(addr, MAX8998_REG_ONOFF3+1, 1, saved_val[3], 1); i2c_read(addr, MAX8998_REG_ONOFF3+1, 1, val, 1); - printf("Waked up.\n"); + puts("Waked up.\n"); /* check max17040 */ check_battery(0); @@ -2562,7 +2562,7 @@ int usb_board_init(void) /* PMIC */ if (i2c_read(0x66, 0, 1, val, 2)) { - printf("i2c_read error\n"); + puts("i2c_read error\n"); return 1; } @@ -2570,7 +2570,7 @@ int usb_board_init(void) val[1] |= (1 << 5); if (i2c_write(0x66, 0, 1, val, 2)) { - printf("i2c_write error\n"); + puts("i2c_write error\n"); return 1; } i2c_read(0x66, 0, 1, val, 2); diff --git a/cpu/arm_cortexa8/s5pc1xx/gpio.c b/cpu/arm_cortexa8/s5pc1xx/gpio.c index aba801d..181ba6b 100644 --- a/cpu/arm_cortexa8/s5pc1xx/gpio.c +++ b/cpu/arm_cortexa8/s5pc1xx/gpio.c @@ -189,11 +189,11 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) gpio_get_value(&gpio->gpio_a0 + i, j) ? "hi" : "lo"); if ((j + 1) & (8 - 1)) - printf("\t"); + puts("\t"); else - printf("\n"); + puts("\n"); } - printf("\n"); + puts("\n"); i++; if ((&gpio->gpio_a0 + i) == &gpio->res1) @@ -208,11 +208,11 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) gpio_get_value(&gpio->gpio_h0 + i, j) ? "hi" : "lo"); if ((j + 1) & (8 - 1)) - printf("\t"); + puts("\t"); else - printf("\n"); + puts("\n"); } - printf("\n"); + puts("\n"); } return 1; diff --git a/cpu/arm_cortexa8/s5pc1xx/sleep.c b/cpu/arm_cortexa8/s5pc1xx/sleep.c index a2de669..0de12a6 100644 --- a/cpu/arm_cortexa8/s5pc1xx/sleep.c +++ b/cpu/arm_cortexa8/s5pc1xx/sleep.c @@ -302,7 +302,7 @@ void s5pc110_wakeup(void) readl(0xE0200F44), readl(0xE0200F40)); } - printf("\n"); + puts("\n"); timer_init(); #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) @@ -328,7 +328,7 @@ static int s5pc110_sleep(int mode) unsigned int value; int i; - printf("Entering s5pc110_sleep();\n"); + puts("Entering s5pc110_sleep();\n"); board_sleep_init(); @@ -380,7 +380,7 @@ static int s5pc110_sleep(int mode) value &= ~S5PC110_CFG_STANDBYWFI_MASK; if (mode == SLEEP_WFI) { if (s5pc1xx_get_cpu_rev() == 0) { - printf("ERRATA MODE\n"); + puts("ERRATA MODE\n"); value |= S5PC110_CFG_STANDBYWFI_IGNORE; } else { value |= S5PC110_CFG_STANDBYWFI_SLEEP; @@ -438,9 +438,9 @@ static int s5pc110_sleep(int mode) if (mode == SLEEP_WFI) { if (s5pc1xx_get_cpu_rev() == 0) { - printf("Warn: Entering SLEEP_WFI mode with" + puts("Warn: Entering SLEEP_WFI mode with" "EVT0_ERRATA. \n"); - printf("Warn: This sleep will probably fail\n"); + puts("Warn: This sleep will probably fail\n"); } value = readl(S5PC110_PWR_CFG); diff --git a/cpu/arm_cortexa8/s5pc1xx/usb-hs-otg.c b/cpu/arm_cortexa8/s5pc1xx/usb-hs-otg.c index eced542..9243dba 100644 --- a/cpu/arm_cortexa8/s5pc1xx/usb-hs-otg.c +++ b/cpu/arm_cortexa8/s5pc1xx/usb-hs-otg.c @@ -378,7 +378,7 @@ static void s5p_usb_wait_cable_insert(void) if (tmp & (B_SESSION_VALID | A_SESSION_VALID)) { break; } else if (ucFirst == 1) { - printf("Insert a OTG cable into the connector!\n"); + puts("Insert a OTG cable into the connector!\n"); ucFirst = 0; } } while (1); @@ -467,7 +467,7 @@ int s5p_usbctl_init(void) s5p_usb_init_device(); return 0; } else { - printf("Error : Current Mode is Host\n"); + puts("Error : Current Mode is Host\n"); return 0; } } @@ -1427,10 +1427,10 @@ static int s5p_usb_set_init(void) if (((status & 0x6) >> 1) == USB_HIGH) { s5p_usb_set_max_pktsize(USB_HIGH); } else if (((status & 0x6) >> 1) == USB_FULL) { - printf("Error: Don't support Full_Speed\n"); + puts("Error: Don't support Full_Speed\n"); return 0; } else { - printf("Error: Neither High_Speed nor Full_Speed\n"); + puts("Error: Neither High_Speed nor Full_Speed\n"); return 0; } diff --git a/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c b/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c index ed5f48e..e747541 100644 --- a/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c +++ b/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c @@ -76,7 +76,7 @@ static void s5p_usb_clear_dnfile_info(void) static void usb_init(void) { if (usb_board_init()) { - printf("Failed to usb_board_init\n"); + puts("Failed to usb_board_init\n"); return; } @@ -102,7 +102,7 @@ static void usb_init(void) s5p_usb_clear_dnfile_info(); - printf("Connected!!\n"); + puts("Connected!!\n"); #ifdef CONFIG_S5PC1XXFB if (!s5p_no_lcd_support()) {