mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
slirp: improve a bit the debug macros
Let them accept multiple arguments. Simplify the inner argument handling of DEBUG_ARGS/DEBUG_MISC_DEBUG_ERROR. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
90dfa27841
commit
2afbb788ff
16 changed files with 109 additions and 85 deletions
|
@ -420,7 +420,7 @@ int tcp_fconnect(struct socket *so, unsigned short af)
|
|||
qemu_setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
|
||||
|
||||
addr = so->fhost.ss;
|
||||
DEBUG_CALL(" connect()ing")
|
||||
DEBUG_CALL(" connect()ing");
|
||||
sotranslate_out(so, &addr);
|
||||
|
||||
/* We don't care what port we get */
|
||||
|
@ -964,7 +964,7 @@ int tcp_ctl(struct socket *so)
|
|||
so->chardev = ex_ptr->ex_chardev;
|
||||
return 1;
|
||||
}
|
||||
DEBUG_MISC((dfd, " executing %s\n", ex_ptr->ex_exec));
|
||||
DEBUG_MISC(" executing %s\n", ex_ptr->ex_exec);
|
||||
return fork_exec(so, ex_ptr->ex_exec);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue