You've already forked pgbackrest
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user