From: Michael Stapelberg Date: Sun, 1 Nov 2009 11:51:52 +0000 (+0100) Subject: Add timestamp for deposit log X-Git-Tag: rgb2rv6~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6867cd4fed2a5368a68f228b23c21d4dbd792634;p=c128-kasse Add timestamp for deposit log --- diff --git a/src/credit_manager.c b/src/credit_manager.c index 0d4b284..5839f78 100644 --- a/src/credit_manager.c +++ b/src/credit_manager.c @@ -55,6 +55,7 @@ struct credits_t *find_credit(char *name){ * */ static void deposit_credit() { + char *time = get_time(); char *input; struct credits_t *credit; unsigned int deposit; @@ -74,7 +75,7 @@ static void deposit_credit() { toggle_videomode(); cprintf("%d Cent eingezahlt fuer %s.\r\nRestguthaben: %d\r\n", deposit, credit->nickname); - sprintf(print_buffer, "%c%d Cent eingezahlt fuer %s. Restguthaben: %d Cent\r", 17, deposit, credit->nickname, credit->credit); + sprintf(print_buffer, "%c%s - %d Cent eingezahlt fuer %s. Restguthaben: %d Cent\r", 17, time, deposit, credit->nickname, credit->credit); cprintf("%s", print_buffer); toggle_videomode(); print_the_buffer();