1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include "stdinc.h"
- #include "9.h"
- /*
- * Dummy for now.
- */
- int
- consPrint(char* fmt, ...)
- {
- int len;
- va_list args;
- char buf[ERRMAX];
- /*
- * To do:
- * This will be integrated with logging and become 'print'.
- */
- va_start(args, fmt);
- len = vsnprint(buf, sizeof(buf), fmt, args);
- va_end(args);
- return consWrite(buf, len);
- }
- int
- consVPrint(char* fmt, va_list args)
- {
- int len;
- char buf[ERRMAX];
- /*
- * To do:
- * This will be integrated with logging and become
- * something else ('vprint'?).
- */
- len = vsnprint(buf, sizeof(buf), fmt, args);
- return consWrite(buf, len);
- }
|