*/
#include <debug.h>
-#include <mach_kdb.h>
#include <mach_kdp.h>
#include <platforms.h>
#include <mach/boolean.h>
#endif
#include <console/serial_protos.h>
-#ifdef __ppc__
-#include <ppc/Firmware.h>
-#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
#endif
}
-#if MACH_KDB
-extern void db_putchar(char c);
-#endif
-
void
-dbugprintf(__unused const char *fmt, ...)
+cons_putc_locked(
+ char c)
{
-
-#if MACH_KDB
- va_list listp;
-
- va_start(listp, fmt);
- _doprnt(fmt, &listp, db_putchar, 16);
- va_end(listp);
-#endif
- return;
+ if ((debug_mode && !disable_debug_output) || !disableConsoleOutput)
+ cnputc(c);
}
int
return 0;
}
+#if !CONFIG_EMBEDDED
+
static void
copybyte(int c, void *arg)
{
*copybyte_str = '\0';
return (int)strlen(buf);
}
+#endif /* !CONFIG_EMBEDDED */