summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-app.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2014-10-27 16:53:57 +0000
committerDaniel P. Berrange <berrange@redhat.com>2014-10-27 16:53:57 +0000
commit80a3ee5d5a3cdcf78837d52524d9aaa0fa319fc7 (patch)
treedd821eda0ccecf222f644811973223b404b40b4d /src/virt-viewer-app.c
parentacc9d72ba7882e54caeae15737cd1b701a5ca02d (diff)
downloadvirt-viewer-80a3ee5d5a3cdcf78837d52524d9aaa0fa319fc7.tar.gz
virt-viewer-80a3ee5d5a3cdcf78837d52524d9aaa0fa319fc7.tar.xz
virt-viewer-80a3ee5d5a3cdcf78837d52524d9aaa0fa319fc7.zip
Avoid log message warning messages due to incorrect int format
The G_N_ELEMENTS() type is size_t but this was being passed to a format string with '%lu' which is of a different size on many platforms. Just delete this part of the warning message since it was not hugely useful.
Diffstat (limited to 'src/virt-viewer-app.c')
-rw-r--r--src/virt-viewer-app.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index f53f450..262d75e 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -355,7 +355,9 @@ virt_viewer_app_parse_monitor_mappings(gchar **mappings, gsize nmappings)
tokens = g_strsplit(mappings[i], ":", 2);
if (g_strv_length(tokens) != 2) {
- g_warning("Invalid monitor-mapping configuration: '%s'. Expected format is '<DISPLAY-ID>:<MONITOR-ID>'. Got %lu elements", mappings[i], G_N_ELEMENTS(tokens));
+ g_warning("Invalid monitor-mapping configuration: '%s'. "
+ "Expected format is '<DISPLAY-ID>:<MONITOR-ID>'",
+ mappings[i]);
g_strfreev(tokens);
goto configerror;
}