Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
idnode: send the collision msg also to log
  • Loading branch information
perexg committed Nov 13, 2015
1 parent 42fab04 commit 2d78ba9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/idnode.c
Expand Up @@ -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);

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2d78ba9

Please sign in to comment.