use log_printf instead of g_warning