Browse files

debug dump binary data with %02x rather than %02c

  • Loading branch information...
1 parent 6ed4bd9 commit e8d6dde8ee4aae2d84bc6df9a83e1ed59dee376d @radii committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 undup.c
@@ -156,7 +156,7 @@ void insert(struct hashtable *t, int idx, off_t off, u8 *sha)
e->next = t->e[idx];
t->e[idx] = e;
- debug("insert idx %d off %llx hash %02c%02c%02c%02c e %p next %p\n",
+ debug("insert idx %d off %llx hash %02x%02x%02x%02x e %p next %p\n",
idx, off, sha[0], sha[1], sha[2], sha[3], e, e->next);

0 comments on commit e8d6dde

Please sign in to comment.