gstreamer: Directly format into a `NUL`-terminated C string for debug log messages
And also replace %
with %%
for < 1.20 inline, and for >= 1.20 use
the new gst_debug_log_literal()
function that doesn't require this and
also reduces string allocations further.