comparison dbutil.c @ 205:3924393e2456

merge of 7d53fee744460df7d2297614c9a4a8a6722eb277 and cc783df3845d0779e2407f0a83fbb605c12efa7d
author Matt Johnston <matt@ucc.asn.au>
date Fri, 27 May 2005 16:37:58 +0000
parents 65585699d980
children ca7e76d981d9 e5ad9fa8b1fa c5d3ef11155f
comparison
equal deleted inserted replaced
204:675f7bf3c391 205:3924393e2456
428 428
429 return m_strdup(hbuf); 429 return m_strdup(hbuf);
430 } 430 }
431 431
432 #ifdef DEBUG_TRACE 432 #ifdef DEBUG_TRACE
433 void printhex(unsigned char* buf, int len) { 433 void printhex(const char * label, const unsigned char * buf, int len) {
434 434
435 int i; 435 int i;
436 436
437 fprintf(stderr, "%s\n", label);
437 for (i = 0; i < len; i++) { 438 for (i = 0; i < len; i++) {
438 fprintf(stderr, "%02x", buf[i]); 439 fprintf(stderr, "%02x", buf[i]);
439 if (i % 16 == 15) { 440 if (i % 16 == 15) {
440 fprintf(stderr, "\n"); 441 fprintf(stderr, "\n");
441 } 442 }