git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup work (much needed)
[tpg/opendispense2.git]
/
src
/
server
/
logging.c
diff --git
a/src/server/logging.c
b/src/server/logging.c
index
51cc8d2
..
ac1e603
100644
(file)
--- a/
src/server/logging.c
+++ b/
src/server/logging.c
@@
-5,15
+5,29
@@
*/
#include <stdlib.h>
#include <stdio.h>
*/
#include <stdlib.h>
#include <stdio.h>
+#include <stdarg.h>
#include "common.h"
// === CODE ==
void Log_Error(const char *Format, ...)
{
#include "common.h"
// === CODE ==
void Log_Error(const char *Format, ...)
{
-
+ va_list args;
+
+ va_start(args, Format);
+ fprintf(stderr, "Error: ");
+ vfprintf(stderr, Format, args);
+ fprintf(stderr, "\n");
+ va_end(args);
}
void Log_Info(const char *Format, ...)
{
}
void Log_Info(const char *Format, ...)
{
+ va_list args;
+
+ va_start(args, Format);
+ printf("Info : ");
+ vprintf(Format, args);
+ printf("\n");
+ va_end(args);
}
}
UCC
git Repository :: git.ucc.asn.au