diff --git a/main/test.c b/main/test.c
index 2bd0b9299d79871ca6c6fe2222eb700064449f41..16973ba1e79c01645b7c50af925e38a12ef5738c 100644
--- a/main/test.c
+++ b/main/test.c
@@ -553,7 +553,7 @@ static struct ast_test *test_alloc(ast_test_cb_t *cb)
 	}
 
 	if (test->info.category[0] != '/' || test->info.category[strlen(test->info.category) - 1] != '/') {
-		ast_log(LOG_WARNING, "Test category is missing a leading or trailing slash for test %s%s\n",
+		ast_log(LOG_WARNING, "Test category '%s' for test '%s' is missing a leading or trailing slash.\n",
 				test->info.category, test->info.name);
 	}