diff options
author | 2012-09-09 12:15:32 +0000 | |
---|---|---|
committer | 2012-09-09 12:15:32 +0000 | |
commit | d4cf23af83453521ab3070a1df538b5d7a823794 (patch) | |
tree | 3a761c4d59f7fc7755812a305b12d277911213cc /lib/libc/asr/asr.c | |
parent | Add test for ssh -Ostop (diff) | |
download | wireguard-openbsd-d4cf23af83453521ab3070a1df538b5d7a823794.tar.xz wireguard-openbsd-d4cf23af83453521ab3070a1df538b5d7a823794.zip |
cleanup asr_debug.c
Diffstat (limited to 'lib/libc/asr/asr.c')
-rw-r--r-- | lib/libc/asr/asr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/asr/asr.c b/lib/libc/asr/asr.c index e328e224f82..221404ec925 100644 --- a/lib/libc/asr/asr.c +++ b/lib/libc/asr/asr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asr.c,v 1.10 2012/09/09 09:42:06 eric Exp $ */ +/* $OpenBSD: asr.c,v 1.11 2012/09/09 12:15:32 eric Exp $ */ /* * Copyright (c) 2010-2012 Eric Faurot <eric@openbsd.org> * @@ -106,7 +106,7 @@ async_resolver(const char *conf) } #ifdef DEBUG - asr_dump(asr); + asr_dump_config(asr_debug, asr); #endif return (asr); @@ -167,11 +167,11 @@ async_run(struct async *as, struct async_res *ar) r = as->as_run(as, ar); DPRINT("asr: async_run(%p, %p) -> %s", as, ar, asr_transitionstr(r)); +#ifdef DEBUG if (r == ASYNC_COND) - DPRINT(" fd=%i timeout=%i\n", ar->ar_fd, ar->ar_timeout); - else - DPRINT("\n"); - +#endif + DPRINT(" fd=%i timeout=%i", ar->ar_fd, ar->ar_timeout); + DPRINT("\n"); if (r == ASYNC_DONE) async_free(as); |