From: John Hodge Date: Sat, 8 Jan 2011 03:20:50 +0000 (+0800) Subject: Slight change to cokebank logging X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f07e8313e6b13f06a06c856c09fd50fbb790bcd0;p=tpg%2Fopendispense2.git Slight change to cokebank logging --- diff --git a/src/cokebank_basic/main.c b/src/cokebank_basic/main.c index 4121614..9cc1308 100644 --- a/src/cokebank_basic/main.c +++ b/src/cokebank_basic/main.c @@ -134,8 +134,9 @@ int Transfer(int SourceUser, int DestUser, int Ammount, const char *Reason) return 1; Bank_AlterUserBalance(DestUser, Ammount); Bank_AlterUserBalance(SourceUser, -Ammount); - fprintf(gBank_LogFile, "ACCT #%i{%i} -= %ic [to #%i] (%s)\n", SourceUser, srcBal, Ammount, DestUser, Reason); - fprintf(gBank_LogFile, "ACCT #%i{%i} += %ic [from #%i] (%s)\n", DestUser, dstBal, Ammount, SourceUser, Reason); + fprintf(gBank_LogFile, "Transfer %ic #%i{%i} > #%i{%i} [%i, %i] (%s)\n", + Ammount, SourceUser, srcBal, DestUser, dstBal, + srcBal - Ammount, dstBal + Ammount, Reason); return 0; }