projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: rpi: Drop CONFIG_CONS_INDEX
[oweals/u-boot.git]
/
include
/
debug_uart.h
diff --git
a/include/debug_uart.h
b/include/debug_uart.h
index 0d640b96e7b11337cb2cffb045a5d5887c415fdf..2980ae6200f25949c75a32e834b0329ae3020471 100644
(file)
--- a/
include/debug_uart.h
+++ b/
include/debug_uart.h
@@
-115,17
+115,23
@@
void printhex8(uint value);
* Now define some functions - this should be inserted into the serial driver
*/
#define DEBUG_UART_FUNCS \
* Now define some functions - this should be inserted into the serial driver
*/
#define DEBUG_UART_FUNCS \
- void printch(int ch) \
+\
+ static inline void _printch(int ch) \
{ \
if (ch == '\n') \
_debug_uart_putc('\r'); \
_debug_uart_putc(ch); \
} \
{ \
if (ch == '\n') \
_debug_uart_putc('\r'); \
_debug_uart_putc(ch); \
} \
+\
+ void printch(int ch) \
+ { \
+ _printch(ch); \
+ } \
\
void printascii(const char *str) \
{ \
while (*str) \
\
void printascii(const char *str) \
{ \
while (*str) \
- printch(*str++); \
+
_
printch(*str++); \
} \
\
static inline void printhex1(uint digit) \
} \
\
static inline void printhex1(uint digit) \