From 3eb3ed319a3a4750563600ed1e4ff52d2fc7e359 Mon Sep 17 00:00:00 2001 From: James Morris Date: Fri, 1 Feb 2013 11:14:27 +0000 Subject: [PATCH] standardize JACK informational messages --- src/jack.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jack.c b/src/jack.c index ee5cdb23..e96696b2 100644 --- a/src/jack.c +++ b/src/jack.c @@ -28,6 +28,7 @@ */ #include "conky.h" +#include "logging.h" #include @@ -87,7 +88,7 @@ static int connect_jack(struct jack_s* jackdata) return -1; } - printf("Registered JACK client '%s'\n", jack_get_client_name(client)); + NORM_ERR("Registered JACK client '%s'", jack_get_client_name(client)) #if HAVE_SEMAPHORE_H sem_init(&zombified, 0, 0); @@ -190,7 +191,7 @@ int update_jack(void) #else if (zombified == zzz) { #endif - printf("JACK client zombified\n"); + NORM_ERR("JACK client '%s' zombified", jack_get_client_name(client)); jackdata->state = 0; client = 0; } @@ -203,7 +204,7 @@ void jack_close(void) if (client) { struct information *current_info = &info; struct jack_s* jackdata = ¤t_info->jack; - printf("Closing JACK client\n"); + NORM_ERR("Closing JACK client '%s'", jack_get_client_name(client)); jack_client_close(client); client = 0; jackdata->state = 0;