From: Arran Cudbard-Bell Date: Wed, 21 Jun 2023 21:02:10 +0000 (-0400) Subject: Print line numbers in the format vscode likes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=619db17476a00c33b80d7be6645623f1eaea36a9;p=thirdparty%2Ffreeradius-server.git Print line numbers in the format vscode likes --- diff --git a/src/bin/unit_test_module.c b/src/bin/unit_test_module.c index 8873bc8ac74..9f577c09433 100644 --- a/src/bin/unit_test_module.c +++ b/src/bin/unit_test_module.c @@ -481,8 +481,8 @@ static bool do_xlats(fr_event_list_t *el, char const *filename, FILE *fp) */ if (strncmp(input, "match ", 6) == 0) { if (strcmp(input + 6, output) != 0) { - fprintf(stderr, "Mismatch at line %d of %s\n\tgot : %s\n\texpected : %s\n", - lineno, filename, output, input + 6); + fprintf(stderr, "Mismatch at %s[%u]\n\tgot : %s\n\texpected : %s\n", + filename, lineno, output, input + 6); TALLOC_FREE(request); return false; }