Cleanup work (much needed)
[tpg/opendispense2.git] / src / server / logging.c
1 /*
2  * OpenDispense2
3  *
4  * logging.c - Debug/Logging Routines
5  */
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <stdarg.h>
9 #include "common.h"
10
11 // === CODE ==
12 void Log_Error(const char *Format, ...)
13 {
14         va_list args;
15
16         va_start(args, Format);
17         fprintf(stderr, "Error: ");
18         vfprintf(stderr, Format, args);
19         fprintf(stderr, "\n");
20         va_end(args);
21 }
22
23 void Log_Info(const char *Format, ...)
24 {
25         va_list args;
26         
27         va_start(args, Format);
28         printf("Info : ");
29         vprintf(Format, args);
30         printf("\n");
31         va_end(args);
32 }
33

UCC git Repository :: git.ucc.asn.au