Fix error reporting in ovnisort

This commit is contained in:
Rodrigo Arias 2021-12-09 16:41:56 +01:00
parent f8d989b214
commit 24a6ce2f2c

4
sort.c
View File

@ -102,7 +102,7 @@ find_destination(struct ring *r, uint64_t clock)
{ {
if(r->ev[i]->header.clock < clock) if(r->ev[i]->header.clock < clock)
{ {
err("found suitable position %ld events backwards\n", dbg("found suitable position %ld events backwards\n",
nback); nback);
return i; return i;
} }
@ -415,7 +415,7 @@ int main(int argc, char *argv[])
return 1; return 1;
if(process_trace(trace)) if(process_trace(trace))
ret = -1; ret = 1;
ovni_free_streams(trace); ovni_free_streams(trace);