aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/error.c
blob: 15611a32f4c8845fc6bd9c30ef17e54bad70a1c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <u.h>
#include <libn.h>

void 
errorf(const byte* fmt, ...)
{
    va_list args;
    va_start(args, fmt);

    printf("error: ");
    vprintf(fmt, args);
    printf("\n");

    va_end(args);
}