diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-05-10 17:02:05 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-05-10 17:02:05 +0000 |
commit | 0f0a8472d7b42b34e7aef276f765fd3ef76e8ae4 (patch) | |
tree | 5e1adce4ff29eb55a306ff943b45dac8ba9931ee /dbutil.c | |
parent | e48e25a548696fa89c984e788f61b1cdf91112f7 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |