fprintf(stdf, "[%ld] %s %s\n", tv.tv_sec, lvl_str, buffer);
}
}
-
-void log_debug(const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- log_printf(LOG_ERR, fmt, ap);
- va_end(ap);
-}
void log_open(const char *path);
void log_printf(int lvl, const char *fmt, ...);
-void log_debug(const char *fmt, ...);
void log_close();
char *name;
NotifyNotification *notif;
- log_debug("ui_notify() last_notification %d",
- last_notification_tv.tv_sec);
+ log_printf(LOG_DEBUG,
+ "ui_notify() last_notification %d",
+ last_notification_tv.tv_sec);
if (gettimeofday(&t, NULL) != 0) {
log_printf(LOG_ERR, _("gettimeofday failed"));
NULL,
GTK_WIDGET(ui->main_window));
#endif
- log_debug("ui_notify() notif_notification_new %s",
- sensor->name);
+ log_printf(LOG_DEBUG,
+ "ui_notify() notif_notification_new %s",
+ sensor->name);
notify_notification_show(notif, NULL);