From 50fb7788953b0b2eaf06d1c82f67467a60ff2a25 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 25 Mar 2015 00:03:35 +0100 Subject: [PATCH] Mention the date obtained in the log (if wrong) --- tests/pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pdu.c b/tests/pdu.c index 97722e5..b61f955 100644 --- a/tests/pdu.c +++ b/tests/pdu.c @@ -76,7 +76,7 @@ static int _pdu_decode(char const * pdu, char const * number, strftime(buf, sizeof(buf), "%d/%m/%Y %H:%M:%S", &t); if(strcmp(buf, datetime) != 0) { - fputs("pdu: Did not match the date\n", stderr); + fprintf(stderr, "pdu: %s: %s\n", buf, "Did not match the date"); ret = 2; } /* check the encoding */