ui/vdagent: improve vdagent_fe_open() trace

Place the trace when the function enters, with arg value.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240717171541.201525-3-marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-07-17 21:15:38 +04:00
parent 2e35439f25
commit 81c88ce0b8
2 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,7 @@ xkeymap_keymap(const char *name) "keymap '%s'"
clipboard_check_serial(int cur, int recv, bool ok) "cur:%d recv:%d %d"
# vdagent.c
vdagent_open(void) ""
vdagent_fe_open(bool fe_open) "fe_open=%d"
vdagent_close(void) ""
vdagent_disconnect(void) ""
vdagent_send(const char *name) "msg %s"

View File

@ -872,6 +872,8 @@ static void vdagent_chr_set_fe_open(struct Chardev *chr, int fe_open)
{
VDAgentChardev *vd = QEMU_VDAGENT_CHARDEV(chr);
trace_vdagent_fe_open(fe_open);
if (!fe_open) {
trace_vdagent_close();
vdagent_disconnect(vd);
@ -881,7 +883,6 @@ static void vdagent_chr_set_fe_open(struct Chardev *chr, int fe_open)
return;
}
trace_vdagent_open();
}
static void vdagent_chr_parse(QemuOpts *opts, ChardevBackend *backend,