void ConsoleOut::Print(const char* Format, ...) { va_list ArgList; va_start(ArgList, Format); VPrint(Format, ArgList); va_end(ArgList); }
static void drawmenu (struct menu *m) { register i, reverse; VClearBox (1, m->col-1, m->hgh+3, m->wid+4); VSetBold (); VDrawBox (1, m->col, m->hgh+2, m->wid+2); VSetDim (); for (i=0; m->submenu[i].name; ++i) if (! m->submenu[i].name[0]) VHorLine (i+2, m->col+2, m->wid-2); VSetNormal (); for (i=0; m->submenu[i].name; ++i) { if (! m->submenu[i].name[0]) continue; reverse = 0; if (i == m->nsm) reverse = VStandOut (); else if (! m->submenu[i].active) VSetDim (); VMove (2+i, m->col+1); VPutChar (i==m->nsm && !reverse ? '[' : ' '); VPrint ("%c %-*s", m->submenu[i].tag ? '*' : ' ', m->wid-4, m->submenu[i].name); VPutChar (i==m->nsm && !reverse ? ']' : ' '); if (i == m->nsm) VStandEnd (); else if (! m->submenu[i].active) VSetNormal (); } }
void ConsoleOut::Print(uint32_t Filter, const char* Format, ...) { va_list ArgList; va_start(ArgList, Format); VPrint(Filter, Format, ArgList); va_end(ArgList); }
void OutputStream::Print(const char *format, ...) { va_list argList; va_start(argList, format); VPrint(format, argList); va_end(argList); }
void PrintQueryResult(int ego, char **caption, char **result, int row, int col) { if (ego) VPrint(caption, result, row, col); else HPrint(caption, result, row, col); PrintSummary(row); }
/* Write to UEFI ConOut */ void efi_printout( CHAR16 *fmt, ... ) { va_list args; va_start (args, fmt); VPrint (fmt, args); va_end (args); }
static inline int Error(const wchar_t *fmt, T... args){ return VPrint(fmt, true, args...); }
static inline int Output(const wchar_t *fmt, T... args){ return VPrint(fmt, false, args...); }
void ConsoleOut::VPrint(const char* Format, va_list& argList) { VPrint(BEHAVIAC_LOG_INFO, Format, argList); }
void OS::Print(const char* format, ...) { va_list args; va_start(args, format); VPrint(format, args); va_end(args); }
void CLogger::VPrint(const char* Format, va_list& argList) { VPrint(BEHAVIAC_LOG_INFO, Format, argList); }
void CLogger::Print(ETagLogLevel Filter, const char* Format, ...) { va_list ArgList; va_start(ArgList, Format); VPrint(Filter, Format, ArgList); va_end(ArgList); }