blob: c4c03c7bc2d4677c9489bb7e085395342d9ac454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <u.h>
#include <libc.h>
void
perror(char *s)
{
char buf[ERRMAX];
buf[0] = '\0';
errstr(buf, sizeof buf);
if(s && *s)
fprint(2, "%s: %s\n", s, buf);
else
fprint(2, "%s\n", buf);
}
|