2019-05-30 11:32:00 +02:00
|
|
|
// The OS/K Team licenses this file to you under the MIT license.
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
2019-06-05 12:53:09 +02:00
|
|
|
#include <pc/arch.h>
|
2019-05-30 11:32:00 +02:00
|
|
|
|
2019-06-21 22:19:55 +02:00
|
|
|
/*
|
2019-06-19 21:41:22 +02:00
|
|
|
void trace(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vfprintf(stderr, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
2019-06-21 22:19:55 +02:00
|
|
|
*/
|
2019-06-19 21:41:22 +02:00
|
|
|
|
|
|
|
void logerr(const char *fmt, ...)
|
2019-05-30 11:32:00 +02:00
|
|
|
{
|
|
|
|
va_list ap;
|
2019-05-30 12:44:56 +02:00
|
|
|
|
2019-05-30 11:32:00 +02:00
|
|
|
va_start(ap, fmt);
|
|
|
|
vfprintf(stderr, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
|
|
|
void vlog(const char *fmt, va_list ap)
|
|
|
|
{
|
2019-07-09 21:02:26 +02:00
|
|
|
vfprintf(stdout, fmt, ap);
|
2019-05-30 11:32:00 +02:00
|
|
|
}
|
|
|
|
|