X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fscreen.c;h=b43dbf4d88c223d71cbbfa1269ebd6cf7558f86f;hp=9c78dde07b7c8d3a7d557c211f804f974c145ab5;hb=01e2bfdc462dbbe8d62b71c7e99e198c27844f0f;hpb=72a450936e2da159d5febe1e96475493badd9070 diff --git a/palacios/src/geekos/screen.c b/palacios/src/geekos/screen.c index 9c78dde..b43dbf4 100644 --- a/palacios/src/geekos/screen.c +++ b/palacios/src/geekos/screen.c @@ -1,7 +1,7 @@ /* * GeekOS text screen output * Copyright (c) 2001,2003,2004 David H. Hovemeyer - * $Revision: 1.1 $ + * $Revision: 1.2 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -12,8 +12,8 @@ #include #include #include -#include #include +#include /* * Information sources for VT100 and ANSI escape sequences: @@ -518,16 +518,26 @@ static struct Output_Sink s_outputSink = { &Print_Emit, &Print_Finish }; * Print to console using printf()-style formatting. * Calls into Format_Output in common library. */ + +static __inline__ void PrintInternal(const char * format, va_list ap) { + Format_Output(&s_outputSink, format, ap); +} + void Print(const char *fmt, ...) { va_list args; - bool iflag = Begin_Int_Atomic(); va_start(args, fmt); - Format_Output(&s_outputSink, fmt, args); + PrintInternal(fmt, args); va_end(args); End_Int_Atomic(iflag); } + +void PrintList(const char * fmt, va_list ap) { + bool iflag = Begin_Int_Atomic(); + PrintInternal(fmt, ap); + End_Int_Atomic(iflag); +}