From: Michael Stapelberg Date: Sat, 31 Oct 2009 11:01:17 +0000 (+0100) Subject: log: padding for the nickname X-Git-Tag: rgb2rv6~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5518f80ec8e6b2ee21fc0f92fac33dd81c801e55;p=c128-kasse log: padding for the nickname --- diff --git a/src/kasse.c b/src/kasse.c index 64bb176..b1ac476 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -122,9 +122,9 @@ static void print_log(char *name, int item_price, int einheiten, char *nickname) cprintf("Preis %d konnte nicht umgerechnet werden\r\n", item_price); exit(1); } - - sprintf(print_buffer, "%c[%lu] %s - %s - %s - %d - an %s\r", 17, - items_sold, time, name, price, + + sprintf(print_buffer, "%c[%lu] %s - %-9s - %s - r %s - %d - an %s\r", 17, + items_sold, time, name, price, rest, einheiten, (*nickname != '\0' ? nickname : "Unbekannt")); RETRY: c = cbm_open((BYTE)4, (BYTE)4, (BYTE)0, NULL);