mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 14:24:02 +08:00
Revert "guest agent: remove g_strcmp0 usage"
Since we now require GLib 2.22+ (commitf40685c
), we don't have to work around lack of g_strcmp0() anymore. This reverts commit8f47747899
. Conflicts: qemu-ga.c Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
e82855d9aa
commit
f300414cfe
@ -274,7 +274,7 @@ static void ga_log(const gchar *domain, GLogLevelFlags level,
|
||||
|
||||
level &= G_LOG_LEVEL_MASK;
|
||||
#ifndef _WIN32
|
||||
if (domain && strcmp(domain, "syslog") == 0) {
|
||||
if (g_strcmp0(domain, "syslog") == 0) {
|
||||
syslog(LOG_INFO, "%s: %s", level_str, msg);
|
||||
} else if (level & s->log_level) {
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user