From d3d2a7cd8606be9696957eb052ca6569db1a8167 Mon Sep 17 00:00:00 2001 From: David Steele Date: Sat, 28 Sep 2019 09:57:06 -0400 Subject: [PATCH] Add line number and fix spacing in TEST_LOG*() macros. --- test/src/common/harnessTest.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/common/harnessTest.h b/test/src/common/harnessTest.h index 4eac0bb49..52d2ba4fe 100644 --- a/test/src/common/harnessTest.h +++ b/test/src/common/harnessTest.h @@ -393,8 +393,8 @@ Logging macros do \ { \ printf( \ - " %03u.%03us %s\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \ - (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), message); \ + " %03u.%03us l%04d - %s\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \ + (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), __LINE__, message); \ fflush(stdout); \ } while(0) @@ -402,8 +402,8 @@ Logging macros do \ { \ printf( \ - " %03u.%03us " format "\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \ - (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), __VA_ARGS__); \ + " %03u.%03us l%04d - " format "\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \ + (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), __LINE__, __VA_ARGS__); \ fflush(stdout); \ } while(0)