diff dbutil.c @ 198:65585699d980

* add a "label" argument to printhex() * make some vars static in random.c
author Matt Johnston <matt@ucc.asn.au>
date Tue, 10 May 2005 17:02:05 +0000
parents 257f09a63dab
children ca7e76d981d9 e5ad9fa8b1fa c5d3ef11155f
line wrap: on
line diff
--- a/dbutil.c	Tue May 10 17:01:16 2005 +0000
+++ b/dbutil.c	Tue May 10 17:02:05 2005 +0000
@@ -430,10 +430,11 @@
 }
 
 #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) {