mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-11 05:24:44 -05:00
tests: Always put a '\n' after each debug print
There is an inconsistency with VIR_TEST_DEBUG() calls. One half (roughly) of calls does have the newline character the other one doesn't. Well, it doesn't have it because it assumed blindly that new line will be printed, which is not the case. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
+2
-2
@@ -87,10 +87,10 @@ unsigned int virTestGetVerbose(void);
|
||||
unsigned int virTestGetExpensive(void);
|
||||
unsigned int virTestGetRegenerate(void);
|
||||
|
||||
#define VIR_TEST_DEBUG(...) \
|
||||
#define VIR_TEST_DEBUG(fmt, ...) \
|
||||
do { \
|
||||
if (virTestGetDebug()) \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, fmt "\n", ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define VIR_TEST_VERBOSE(...) \
|
||||
|
||||
Reference in New Issue
Block a user