Mention the date obtained in the log (if wrong)

This commit is contained in:
Pierre Pronchery 2015-03-25 00:03:35 +01:00
parent 6970c80aa5
commit 50fb778895

View File

@ -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 */