Server - Fixed leaked file handles in both itemdb and modbus
[tpg/opendispense2.git] / src / server / common.h
index 7ad01c5..74c42d9 100644 (file)
@@ -96,8 +96,12 @@ extern int   DispenseDonate(int ActualUser, int User, int Ammount, const char *Rea
 extern int     DispenseUpdateItem(int User, tItem *Item, const char *NewName, int NewPrice);
 
 // --- Logging ---
+// to syslog
 extern void    Log_Error(const char *Format, ...);
 extern void    Log_Info(const char *Format, ...);
+// To stdout
+#define Debug_Notice(msg, v...)        fprintf(stderr, "%08llun: "msg"\n", (unsigned long long)time(NULL) ,##v)
+#define Debug_Debug(msg, v...) fprintf(stderr, "%08llud: "msg"\n", (unsigned long long)time(NULL) ,##v)
 
 // --- Config Database ---
 extern void    Config_ParseFile(const char *Filename);

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