From 7e71efaeefcedb9a740b5f39f323789cba6af08d Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Tue, 9 Oct 2012 10:01:46 +0100 Subject: [PATCH] Fix printing error in epggrab. --- src/epggrab/module.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/epggrab/module.c b/src/epggrab/module.c index 5eded322..b920eea1 100644 --- a/src/epggrab/module.c +++ b/src/epggrab/module.c @@ -287,7 +287,7 @@ char *epggrab_module_grab_spawn ( void *m ) /* Grab */ outlen = spawn_and_store_stdout(mod->path, NULL, &outbuf); if ( outlen < 1 ) { - tvhlog(LOG_ERR, "pyepg", "no output detected"); + tvhlog(LOG_ERR, mod->id, "no output detected"); return NULL; } @@ -300,13 +300,14 @@ htsmsg_t *epggrab_module_trans_xml ( void *m, char *c ) { htsmsg_t *ret; char errbuf[100]; + epggrab_module_t *mod = m; if (!c) return NULL; /* Extract */ ret = htsmsg_xml_deserialize(c, errbuf, sizeof(errbuf)); if (!ret) - tvhlog(LOG_ERR, "pyepg", "htsmsg_xml_deserialize error %s", errbuf); + tvhlog(LOG_ERR, mod->id, "htsmsg_xml_deserialize error %s", errbuf); return ret; }