diff options
author | ian <ian@FreeBSD.org> | 2014-05-15 21:41:32 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-05-15 21:41:32 +0000 |
commit | 4742b38bad2021d36f17b02ec7f94799806ac558 (patch) | |
tree | e85db2ee8600db8e0d9f262000e51a2f07aac04a /sys/kern/subr_prf.c | |
parent | 8cc892107dae023ecf9b4c50ce15c97172a61516 (diff) | |
download | FreeBSD-src-4742b38bad2021d36f17b02ec7f94799806ac558.zip FreeBSD-src-4742b38bad2021d36f17b02ec7f94799806ac558.tar.gz |
MFC r261786, r261789
Rework the EARLY_PRINTF mechanism. Instead of defining a special eprintf()
routine, now a platform can provide a pointer to an early_putc() routine
which is used instead of cn_putc(). Control can be handed off from early
printf support to standard console support by NULLing out the pointer
during standard console init.
Convert two while(1); statements into proper panics.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 9c7379f..28e33a4 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1122,25 +1122,3 @@ hexdump(const void *ptr, int length, const char *hdr, int flags) printf("\n"); } } -#ifdef EARLY_PRINTF -/* - * Support for calling an alternate printf early in boot (like before - * cn_init() can be called). Platforms need to define eputc that want - * to use this. - */ -static void -early_putc_func(int ch, void *arg __unused) -{ - eputc(ch); -} - -void -eprintf(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - kvprintf(fmt, early_putc_func, NULL, 10, ap); - va_end(ap); -} -#endif |