From cc6dd11c377486be56cbf0383499e5636f70b07b Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 30 Mar 2011 18:37:18 +0200 Subject: [PATCH] don't print 0xdeadbeef in the WIDLE state --- aucat/sock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aucat/sock.c b/aucat/sock.c index 0e094ce..9028059 100644 --- a/aucat/sock.c +++ b/aucat/sock.c @@ -1664,8 +1664,11 @@ sock_write(struct sock *f) if (debug_level >= 4) { sock_dbg(f); dbg_puts(": writing "); - dbg_putu(f->wtodo); - dbg_puts(" todo\n"); + if (f->wstate != SOCK_WIDLE) { + dbg_putu(f->wtodo); + dbg_puts(" todo\n"); + } else + dbg_puts("\n"); } #endif switch (f->wstate) {