From 7f7c8acbaed65722bad16ebb9d710b5e4097895e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 10 Apr 2015 13:27:53 +0200 Subject: [PATCH] test: print NMTST_SEED_RAND value with g_print() For tests with assert-logging enabled, we already printed the message with g_print(), instead of g_message(). We always want to print this value, because it is important to reproduce a test failure. Hence, just (always) print directly to stdout. Also, add a leading newline, because the output was attached to the previous line. (cherry picked from commit 4ab540939c424ade6cf6eb40cf0d79ec8a17101f) --- include/nm-test-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nm-test-utils.h b/include/nm-test-utils.h index f615c6b1b7..ccbb415e9e 100644 --- a/include/nm-test-utils.h +++ b/include/nm-test-utils.h @@ -493,7 +493,7 @@ nmtst_get_rand (void) } __nmtst_internal.rand_seed = seed; - __NMTST_LOG (g_message, ">> initialize nmtst_get_rand() with NMTST_SEED_RAND=%u", seed); + g_print ("\nnmtst: initialize nmtst_get_rand() with NMTST_SEED_RAND=%u\n", seed); } return __nmtst_internal.rand; }