mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-11 05:24:44 -05:00
tests: Always put '\n' at the end of VIR_TEST_VERBOSE
Similarly to the previous commit, VIR_TEST_VERBOSE should put '\n' at the end of each call so that the output is not broken. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
+2
-2
@@ -93,10 +93,10 @@ unsigned int virTestGetRegenerate(void);
|
||||
fprintf(stderr, fmt "\n", ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define VIR_TEST_VERBOSE(...) \
|
||||
#define VIR_TEST_VERBOSE(fmt, ...) \
|
||||
do { \
|
||||
if (virTestGetVerbose()) \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, fmt "\n", ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
char *virTestLogContentAndReset(void);
|
||||
|
||||
Reference in New Issue
Block a user