diff options
author | justanothercatgirl <sotov@twistea.su> | 2025-02-02 20:28:12 +0300 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2025-02-02 20:33:05 +0300 |
commit | e14c6bc3801be29eb5a64c813754b170a67d4956 (patch) | |
tree | d50139560fa85aa431ac934c03f19905327141e7 /tests | |
parent | 8989b7dc005af7960aa66fd99b197a3b0b7a4fbc (diff) |
Added log header
Diffstat (limited to 'tests')
-rw-r--r-- | tests/log.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/log.c b/tests/log.c new file mode 100644 index 0000000..e4d1c1e --- /dev/null +++ b/tests/log.c @@ -0,0 +1,22 @@ +#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"); +} |