The g_string_sprintf and g_string_sprintfa macros throw deprecation
warnings with recent GLib versions. It seems these have been simple
shims over g_string_printf and g_string_append_printf, respectively,
since approximately forever ago (before GLib 2.0). Should be safe
to just switch, then.