The debugging notes wrapping g_debug() already have an implicit newline at the end of the passed message.