comparison debug.h @ 478:d4f32c3443ac dbclient-netcat-alike

propagate from branch 'au.asn.ucc.matt.dropbear' (head f21045c791002d81fc6b8dde6537ea481e513eb2) to branch 'au.asn.ucc.matt.dropbear.dbclient-netcat-alike' (head d1f69334581dc4c35f9ca16aa5355074c9dd315d)
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Sep 2008 06:47:51 +0000
parents 6b41e2cbf071 fd1f05639ed4
children d59f628e7baa
comparison
equal deleted inserted replaced
296:6b41e2cbf071 478:d4f32c3443ac
37 * You'll need to run programs with "-v" to turn this on. 37 * You'll need to run programs with "-v" to turn this on.
38 * 38 *
39 * Caution: Don't use this in an unfriendly environment (ie unfirewalled), 39 * Caution: Don't use this in an unfriendly environment (ie unfirewalled),
40 * since the printing may not sanitise strings etc. This will add a reasonable 40 * since the printing may not sanitise strings etc. This will add a reasonable
41 * amount to your executable size. */ 41 * amount to your executable size. */
42 #define DEBUG_TRACE 42 /*#define DEBUG_TRACE*/
43 43
44 /* All functions writing to the cleartext payload buffer call 44 /* All functions writing to the cleartext payload buffer call
45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
46 * attempting to track down a problem */ 46 * attempting to track down a problem */
47 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 47 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \
48 ses.writepayload->pos == 0) 48 ses.writepayload->pos == 0)*/
49
50 #define CHECKCLEARTOWRITE()
49 51
50 /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon 52 /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon
51 * output when Dropbear forks. This will allow it gprof to be used. 53 * output when Dropbear forks. This will allow it gprof to be used.
52 * It's useful to run dropbear -F, so you don't fork as much */ 54 * It's useful to run dropbear -F, so you don't fork as much */
53 /* (This is Linux specific) */ 55 /* (This is Linux specific) */