mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-08-27 01:49:21 +03:00
g_{message,warning}: Use printf style
The g_message() and g_warning functions expect printf style of arguments. That is, whenever we want to print a string, it has to be preceded with "%s" format.
This commit is contained in:
@ -637,7 +637,7 @@ remote_viewer_start(VirtViewerApp *app)
|
||||
g_free(path);
|
||||
if (error) {
|
||||
virt_viewer_app_simple_message_dialog(app, _("Invalid file %s"), guri);
|
||||
g_warning(error->message);
|
||||
g_warning("%s", error->message);
|
||||
g_clear_error(&error);
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ virt_viewer_auth_vnc_credentials(VirtViewerSession *session,
|
||||
}
|
||||
if (wantPassword && virt_viewer_file_is_set(file, "password")) {
|
||||
password = virt_viewer_file_get_password(file);
|
||||
g_message (password);
|
||||
g_message("%s", password);
|
||||
wantPassword = FALSE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user