X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/060df5ea7c632b1ac8cc8aac1fb59758165c2084..6d2010ae8f7a6078e10b361c6962983bab233e0f:/osfmk/kern/printf.c diff --git a/osfmk/kern/printf.c b/osfmk/kern/printf.c index fd04f883a..730be5c81 100644 --- a/osfmk/kern/printf.c +++ b/osfmk/kern/printf.c @@ -172,17 +172,12 @@ #endif #include -#ifdef __ppc__ -#include -#endif - #define isdigit(d) ((d) >= '0' && (d) <= '9') #define Ctod(c) ((c) - '0') #define MAXBUF (sizeof(long long int) * 8) /* enough for binary */ static char digs[] = "0123456789abcdef"; - #if CONFIG_NO_PRINTF_STRINGS /* Prevent CPP from breaking the definition below */ #undef printf @@ -762,6 +757,14 @@ conslog_putc( #endif } +void +cons_putc_locked( + char c) +{ + if ((debug_mode && !disable_debug_output) || !disableConsoleOutput) + cnputc(c); +} + #if MACH_KDB extern void db_putchar(char c); #endif @@ -860,6 +863,8 @@ kdb_printf_unbuffered(const char *fmt, ...) return 0; } +#if !CONFIG_EMBEDDED + static void copybyte(int c, void *arg) { @@ -891,3 +896,4 @@ sprintf(char *buf, const char *fmt, ...) *copybyte_str = '\0'; return (int)strlen(buf); } +#endif /* !CONFIG_EMBEDDED */