1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Add line number and fix spacing in TEST_LOG*() macros.

This commit is contained in:
David Steele
2019-09-28 09:57:06 -04:00
parent afc483ef86
commit d3d2a7cd86
+4 -4
View File
@@ -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)