summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-05-10 17:02:05 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-05-10 17:02:05 +0000
commit0f0a8472d7b42b34e7aef276f765fd3ef76e8ae4 (patch)
tree5e1adce4ff29eb55a306ff943b45dac8ba9931ee /dbutil.c
parente48e25a548696fa89c984e788f61b1cdf91112f7 (diff)
* add a "label" argument to printhex()
* make some vars static in random.c --HG-- extra : convert_revision : ef941a918e42e8af23b132946f44e6836a327e71
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index 5f3a45d..45c720e 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -430,10 +430,11 @@ char* getaddrhostname(struct sockaddr_storage * addr) {
}
#ifdef DEBUG_TRACE
-void printhex(unsigned char* buf, int len) {
+void printhex(const char * label, const unsigned char * buf, int len) {
int i;
+ fprintf(stderr, "%s\n", label);
for (i = 0; i < len; i++) {
fprintf(stderr, "%02x", buf[i]);
if (i % 16 == 15) {