X-Git-Url: https://git.saurik.com/apple/boot.git/blobdiff_plain/57c72a9a9f2a263d364c2df1178760bd057c390f..bba600dda0ea8a76d875db7308f372bfc43f8506:/i386/libsaio/console.c diff --git a/i386/libsaio/console.c b/i386/libsaio/console.c index 3922373..d6bdfac 100644 --- a/i386/libsaio/console.c +++ b/i386/libsaio/console.c @@ -96,7 +96,7 @@ int getchar() int printf(const char * fmt, ...) { va_list ap; - if (bootArgs->graphicsMode != TEXT_MODE) return -1; + if (bootArgs->Video.v_display != VGA_TEXT_MODE) return -1; va_start(ap, fmt); prf(fmt, ap, putchar, 0); va_end(ap); @@ -126,8 +126,14 @@ int error(const char * fmt, ...) return(0); } -void stop(const char * msg) +void stop(const char * fmt, ...) { - error("\n%s\n", msg); + va_list ap; + + printf("\n"); + va_start(ap, fmt); + prf(fmt, ap, putchar, 0); + va_end(ap); + printf("\n"); halt(); }