Skip to contentSkip to conversation

trivial: qga: Log version on start

PATCH Superseded Konstantin Kostiuk 2 participants 3 messages May 23, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: qga: Log version on start

---
 qga/main.c | 2 ++
 1 file changed, 2 insertions(+)
qga/main.c +2 -0
index 3b9546c185..a58368c75e 100644
@@ -1271,6 +1271,8 @@ static GAState *initialize_agent(GAConfig *config, int socket_activation)
     g_log_set_fatal_mask(NULL, G_LOG_LEVEL_ERROR);
     ga_enable_logging(s);
 
+    g_debug("Guest agent version %s started", QEMU_VERSION);
+
 #ifdef _WIN32
     /* On win32 the state directory is application specific (be it the default
      * or a user override). We got past the command line parsing; let's create
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Konstantin Kostiuk

why not, and why not QEMU_FULL_VERSION? :)

Quoted 20 lines
---
 qga/main.c | 2 ++
 1 file changed, 2 insertions(+)
qga/main.c +2 -1
index 3b9546c185..a58368c75e 100644
@@ -1271,6 +1271,8 @@ static GAState *initialize_agent(GAConfig *config, int socket_activation)
     g_log_set_fatal_mask(NULL, G_LOG_LEVEL_ERROR);
     ga_enable_logging(s);
 
+    g_debug("Guest agent version %s started", QEMU_VERSION);
+
 #ifdef _WIN32
     /* On win32 the state directory is application specific (be it the default
      * or a user override). We got past the command line parsing; let's create
--

2.25.1

#2 lore raw
Quoted 7 lines · Marc-André Lureau
Quoted 2 lines · Konstantin Kostiuk

why not, and why not QEMU_FULL_VERSION? :)

QEMU_FULL_VERSION is good too, no specific reason to use QEMU_VERSION.

Quoted 27 lines

qga/main.c static GAState *initialize_agent(GAConfig *config,

Quoted 9 lines
---
 qga/main.c | 2 ++
 1 file changed, 2 insertions(+)
qga/main.c +0 -0
index 3b9546c185..a58368c75e 100644
@@ -1271,6 +1271,8 @@ static GAState *initialize_agent(GAConfig *config,

int socket_activation)

qga/main.c static GAState *initialize_agent(GAConfig *config, int socket_activation)

Quoted 7 lines
qga/main.c +2 -0
     g_log_set_fatal_mask(NULL, G_LOG_LEVEL_ERROR);
     ga_enable_logging(s);
 
+    g_debug("Guest agent version %s started", QEMU_VERSION);
+
 #ifdef _WIN32
     /* On win32 the state directory is application specific (be it the

default

qga/main.c static GAState *initialize_agent(GAConfig *config, · line 1278

Quoted 1 line
qga/main.c +0 -0
      * or a user override). We got past the command line parsing; let's

create

Quoted 3 lines

--
2.25.1