logging
[psensor.git] / src / ui_notify.c
index cf0da1a..dcc3264 100644 (file)
@@ -39,9 +39,7 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
        char *name;
        NotifyNotification *notif;
 
-       log_printf(LOG_DEBUG,
-                  "ui_notify() last_notification %d",
-                  last_notification_tv.tv_sec);
+       log_debug("last_notification %d", last_notification_tv.tv_sec);
 
        if (gettimeofday(&t, NULL) != 0) {
                log_printf(LOG_ERR,  _("gettimeofday failed"));
@@ -73,9 +71,7 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
                                                NULL,
                                                GTK_WIDGET(ui->main_window));
 #endif
-               log_printf(LOG_DEBUG,
-                          "ui_notify() notif_notification_new %s",
-                          sensor->name);
+               log_debug("notif_notification_new %s", sensor->name);
 
                notify_notification_show(notif, NULL);