mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-28 07:06:04 +00:00
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:
parent
acc9d72ba7
commit
80a3ee5d5a
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user