Mercurial > dropbear
diff dbutil.c @ 299:740e782679be ucc-axis-hack
Various changes to compile+kind of run on UCC's axis board.
Note that fprintf(stdin -> printf( accounts for many of the changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 12:57:09 +0000 |
parents | 306499676384 |
children | 973fccb59ea4 |
line wrap: on
line diff
--- a/dbutil.c Fri Dec 09 06:10:27 2005 +0000 +++ b/dbutil.c Sat Mar 25 12:57:09 2006 +0000 @@ -121,7 +121,7 @@ vsnprintf(printbuf, sizeof(printbuf), format, param); - fprintf(stderr, "%s\n", printbuf); + printf( "%s\n", printbuf); } @@ -146,10 +146,11 @@ } va_start(param, format); - fprintf(stderr, "TRACE: "); - vfprintf(stderr, format, param); - fprintf(stderr, "\n"); + printf( "TRACE: "); + vprintf( format, param); + printf( "\n"); va_end(param); + //usleep(100000); } #endif /* DEBUG_TRACE */ @@ -476,17 +477,17 @@ int i; - fprintf(stderr, "%s\n", label); + printf( "%s\n", label); for (i = 0; i < len; i++) { - fprintf(stderr, "%02x", buf[i]); + printf( "%02x", buf[i]); if (i % 16 == 15) { - fprintf(stderr, "\n"); + printf( "\n"); } else if (i % 2 == 1) { - fprintf(stderr, " "); + printf( " "); } } - fprintf(stderr, "\n"); + printf( "\n"); } #endif