mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
slirp: call into g_debug() for DEBUG macros
Make slirp use GLib logging, instead of fprintf(), so that applications can filter log, process it etc. With recent versions of glib, G_MESSAGES_DEBUG must be set to "all" or "Slirp" to see slirp debug messages. Reformat DEBUG_MISC & DEBUG_ERROR calls to not need \n ending. 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
2a2d3e4a25
commit
226ea7a964
11 changed files with 39 additions and 53 deletions
|
@ -964,7 +964,7 @@ int tcp_ctl(struct socket *so)
|
|||
so->chardev = ex_ptr->ex_chardev;
|
||||
return 1;
|
||||
}
|
||||
DEBUG_MISC(" executing %s\n", ex_ptr->ex_exec);
|
||||
DEBUG_MISC(" executing %s", ex_ptr->ex_exec);
|
||||
return fork_exec(so, ex_ptr->ex_exec);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue