don't print 0xdeadbeef in the WIDLE state

This commit is contained in:
Alexandre Ratchov 2011-03-30 18:37:18 +02:00
parent c70f456e5c
commit cc6dd11c37
1 changed files with 5 additions and 2 deletions

View File

@ -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) {