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-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);
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
vfprintf(stderr, fmt, ap);
|
|
|
|
}
|
|
|
|
|