blob: 1db1406c9120afe19266de5c0d017d430512d055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <log.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
void urmom() {
LERRV("This is error!");
LERRV("How could this be!");
LERRV("Impossible...");
}
int main() {
LDEBUGV("1st debug message");
LDEBUGF("Formatted message: %i, %.2f", 69, 420.69696969);
LINFOVF("literally checking %s", "colors");
open("/dev/asdjasfhkd", O_RDWR);
LWARNPV("open");
write(696969696, "", 1203192391823);
LERRP("write");
urmom();
LCRIT(1, "This is considered critical");
}
/* vim: set ts=8 noet: */
|