From: Alan T. DeKok Date: Tue, 29 Jul 2025 11:53:19 +0000 (-0400) Subject: print full received data on -xx X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a009df74916f61dc787c83fde009d0703a7b243a;p=thirdparty%2Ffreeradius-server.git print full received data on -xx --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 6ca12faf6e..a44aef542d 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -374,6 +374,10 @@ static void mismatch_print(command_file_ctx_t *cc, char const *command, ERROR(" got : %.*s", (int) got_len, got); ERROR(" expected : %.*s", (int) expected_len, expected); ERROR(" %.*s^ differs here (%zu)", (int) (e - expected), spaces, e - expected); + } else if (fr_debug_lvl > 1) { + ERROR(" got : %.*s", (int) got_len, got); + ERROR("Differs at : %zu", e - expected); + } else { size_t glen, elen;