From: Jaroslav Kysela Date: Fri, 13 Nov 2015 19:27:22 +0000 (+0100) Subject: idnode: send the collision msg also to log X-Git-Tag: v4.2.1~1553 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d78ba9476c4dc6e229c02e23bfcf967aaa6b4b2;p=thirdparty%2Ftvheadend.git idnode: send the collision msg also to log --- diff --git a/src/idnode.c b/src/idnode.c index e3bffea46..fe7a5359e 100644 --- a/src/idnode.c +++ b/src/idnode.c @@ -121,7 +121,7 @@ idnode_insert(idnode_t *in, const char *uuid, const idclass_t *class, int flags) tvh_uuid_t u; int retries = 5; uint32_t u32; - const idclass_t *idc;; + const idclass_t *idc; lock_assert(&global_lock); @@ -152,6 +152,8 @@ idnode_insert(idnode_t *in, const char *uuid, const idclass_t *class, int flags) } while (c != NULL && --retries > 0); if(c != NULL) { + tvherror("idnode", "Id node collission (%s) %s\n", + uuid, (flags & IDNODE_SHORT_UUID) ? " (short)" : ""); fprintf(stderr, "Id node collision (%s) %s\n", uuid, (flags & IDNODE_SHORT_UUID) ? " (short)" : ""); abort();