g_string_sprintf --> g_string_printf and g_string_sprintfa --> g_string_append_printf