]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
idnode: send the collision msg also to log
authorJaroslav Kysela <perex@perex.cz>
Fri, 13 Nov 2015 19:27:22 +0000 (20:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 13 Nov 2015 19:27:22 +0000 (20:27 +0100)
src/idnode.c

index e3bffea46c7e7e8ebad3be037f97e7d5288d9e17..fe7a5359ee3d2120d8ba091a9ac61f37ea177cec 100644 (file)
@@ -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();