summaryrefslogtreecommitdiff
path: root/c_src/permdb.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-04-29 13:57:17 +0200
committerLinus Nordberg <linus@nordu.net>2016-04-29 15:03:00 +0200
commitb85e7f5c4eda91eb48749aed435e747fd732a075 (patch)
tree7b7f56d7ad5e240a87f5bf969c7b53deb174cf96 /c_src/permdb.c
parent01d3fea04f30f03123efd13e7cef198aea8d0195 (diff)
Print error message when non-cookie data is found in rebuild_index_file().
Diffstat (limited to 'c_src/permdb.c')
-rw-r--r--c_src/permdb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/c_src/permdb.c b/c_src/permdb.c
index 87edb6d..c0bd5f0 100644
--- a/c_src/permdb.c
+++ b/c_src/permdb.c
@@ -413,10 +413,9 @@ rebuild_index_file(permdb_object *state)
return -1;
}
free(data_commit);
- //fprintf(stderr, "commit %llu\n", offset);
} else {
- //fprintf(stderr, "error %llu\n", offset);
- //print_hex(cookie, sizeof(data_entry_cookie));
+ fprintf(stderr, "not a cookie at %llu:\n", offset);
+ print_hex(cookie, sizeof(data_entry_cookie));
free(cookie);
return -1;
}