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.
This commit is contained in:
Daniel P. Berrange 2014-10-27 16:53:57 +00:00
parent acc9d72ba7
commit 80a3ee5d5a

View File

@ -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;
}