aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-02-07 08:51:11 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2023-03-30 12:19:04 +0300
commit099e8cd9eac7924c9439d51786eda0988bd8f0b7 (patch)
tree9a216bf92a55306baa4ee71fa93ee480813906bf
parent32b8913f725aaad6cf6aa7462a9b15e350a40b1d (diff)
downloadqemu-099e8cd9eac7924c9439d51786eda0988bd8f0b7.zip
qemu-099e8cd9eac7924c9439d51786eda0988bd8f0b7.tar.gz
qemu-099e8cd9eac7924c9439d51786eda0988bd8f0b7.tar.bz2
qga: Drop dangling reference to QERR_QGA_LOGGING_DISABLED
slog()'s function comment advises to use QERR_QGA_LOGGING_DISABLED. This macro never existed. The reference got added in commit e3d4d25206a "guest agent: add guest agent RPCs/commands" along with QERR_QGA_LOGGING_FAILED, so maybe that one was meant. However, QERR_QGA_LOGGING_FAILED was never actually used, and was removed in commit d73f0beadb5 "qerror.h: Remove unused error classes". Drop the dangling reference. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230207075115.1525-9-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> (cherry picked from commit c40233593ed5732de1676412527e42431e33e62c) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--qga/commands.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/qga/commands.c b/qga/commands.c
index 7ff551d..6cf9783 100644
--- a/qga/commands.c
+++ b/qga/commands.c
@@ -32,9 +32,8 @@
#define GUEST_FILE_READ_COUNT_MAX (48 * MiB)
/* Note: in some situations, like with the fsfreeze, logging may be
- * temporarilly disabled. if it is necessary that a command be able
- * to log for accounting purposes, check ga_logging_enabled() beforehand,
- * and use the QERR_QGA_LOGGING_DISABLED to generate an error
+ * temporarily disabled. if it is necessary that a command be able
+ * to log for accounting purposes, check ga_logging_enabled() beforehand.
*/
void slog(const gchar *fmt, ...)
{