]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Print line numbers in the format vscode likes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Jun 2023 21:02:10 +0000 (17:02 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Jun 2023 21:02:10 +0000 (17:02 -0400)
src/bin/unit_test_module.c

index 8873bc8ac746d7faed7cc24072615b096959c3ac..9f577c094338464d54efc01ea60ea138e1eb157f 100644 (file)
@@ -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;
                        }