From ed097192e3e53d92ed6f701f93bb1aae997caddd Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 12 Aug 2010 18:42:31 +0800 Subject: pretty-printing of transaction log --- easytool/easytool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easytool/easytool.c b/easytool/easytool.c index 4481385..8ab2262 100644 --- a/easytool/easytool.c +++ b/easytool/easytool.c @@ -111,7 +111,7 @@ static void dump_easy_log(const struct easy_log_rec *elr) { time_t t_time = convert_timestamp(elr->timestamp); struct tm *t_tm = gmtime(&t_time); - printf("%u-%u-%u %u:%u | %10s %u NTD -> %u NTD remaining\n", + printf("%4u-%02u-%02u %02u:%02u | %10s | Paid %4u NTD | %4u NTD remaining\n", t_tm->tm_year+1900, t_tm->tm_mon+1, t_tm->tm_mday, t_tm->tm_hour, t_tm->tm_min, get_value_string(easy_tt_names, elr->trans_type), -- cgit v1.2.3