From f07e8313e6b13f06a06c856c09fd50fbb790bcd0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 8 Jan 2011 11:20:50 +0800 Subject: [PATCH] Slight change to cokebank logging --- src/cokebank_basic/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.20.1