Skip to content

test-logging: Do not use G_PASTE to join level

Frediano Ziglio requested to merge fziglio/spice-common:mr_debug_fix into master

"level" can have value "DEBUG". In some environment "DEBUG" is used as preprocessor name to enable some debugging code. Using -DDEBUG option (or similar) cause "DEBUG" to be defined as "1" so "G_PASTE(G_LOG_LEVEL_, level)" will be expanded to "G_LOG_LEVEL_1" instead of "G_LOG_LEVEL_DEBUG". Just concatenate the two literal to avoid "DEBUG" expansion.

Signed-off-by: Frediano Ziglio fziglio@redhat.com

Edited by Frediano Ziglio

Merge request reports

Loading