From 5518f80ec8e6b2ee21fc0f92fac33dd81c801e55 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 31 Oct 2009 12:01:17 +0100 Subject: [PATCH] log: padding for the nickname --- src/kasse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5