packio

view src/logger.c @ 1:a5728bc6a02f

moving along
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Jan 2015 02:31:29 +0200
parents
children
line source
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <stdarg.h>
5 #define PREFIX "packio: "
7 void pkio_logmsg(const char *fmt, ...)
8 {
9 va_list ap;
11 va_start(ap, fmt);
12 fputs(PREFIX, stderr);
13 vfprintf(stderr, fmt, ap);
14 va_end(ap);
15 }