X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fserver%2Fcommon.h;h=74c42d9767cefa287f08f8b97cc9ccdfbdd257dd;hb=008596161453e64354973268125058b49aee60d3;hp=7ad01c5d5d786a27f41ba52c409ba6845db887bb;hpb=5ea4314d1ee0769f8b521df2c81fe65f3a654959;p=tpg%2Fopendispense2.git diff --git a/src/server/common.h b/src/server/common.h index 7ad01c5..74c42d9 100644 --- a/src/server/common.h +++ b/src/server/common.h @@ -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);