static inline void log_print(FILE *out, const gchar* log_domain,
const gchar *level, const gchar *message)
{
- fprintf(out, log_domain);
+ fprintf(out, "%s", log_domain);
fprintf(out, "-");
- fprintf(out, level);
+ fprintf(out, "%s", level);
fprintf(out, ": ");
- fprintf(out, message);
+ fprintf(out, "%s", message);
fprintf(out, "\n");
fflush(out);
}
{
if (ob_state() == OB_STATE_RUNNING)
prompt_show_message(message, _("Openbox"), _("Close"));
+ else
+ log_handler(log_domain, log_level, message, data);
}
static inline void log_argv(ObDebugType type,
g_free(a);
}
- g_debug(message);
+ g_debug("%s", message);
g_free(message);
}