Commit 6829404a authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

felboot: Correct merge conflict

parent 99c3501b
...@@ -42,6 +42,7 @@ void preloader_console_init(void) ...@@ -42,6 +42,7 @@ void preloader_console_init(void)
void hang(void) void hang(void)
{ {
printf("Please reset the board!"); printf("Please reset the board!");
while(1);
} }
void udelay(unsigned long usec) void udelay(unsigned long usec)
...@@ -98,12 +99,11 @@ void sunxi_board_init(void) ...@@ -98,12 +99,11 @@ void sunxi_board_init(void)
} }
#ifndef NO_PRINTF #ifndef NO_PRINTF
int putchar(int ch) void putchar(int ch)
{ {
if (ch == '\n') if (ch == '\n')
uart_putc('\r'); uart_putc('\r');
uart_putc(ch); uart_putc(ch);
return 0;
} }
void puts(const char *str) void puts(const char *str)
...@@ -113,14 +113,12 @@ void puts(const char *str) ...@@ -113,14 +113,12 @@ void puts(const char *str)
} }
#else #else
int putchar(int ch) void putchar(int ch)
{ {
return uart_putc(ch);
} }
int puts(const char *str) void puts(const char *str)
{ {
return uart_puts(str);
} }
int printf(const char *fmt, ...) int printf(const char *fmt, ...)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment