Skip to content

Commit

Permalink
xup: Display mismatched version number to user
Browse files Browse the repository at this point in the history
The mismatched versions are now displayed to the user rathe than being
buried in the log. This should aid fault reporting and help users find
distro-introduced problems with an Internet search.
  • Loading branch information
matt335672 committed Nov 23, 2024
1 parent 90e3258 commit 84970a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xup/xup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1836,12 +1836,12 @@ lib_mod_process_message(struct mod *mod, struct stream *s)
in_uint32_le(s, version);
if (version != CLIENT_INFO_CURRENT_VERSION)
{
LOG(LOG_LEVEL_ERROR,
"Xorg module has version %d, expected %d",
version, CLIENT_INFO_CURRENT_VERSION);
mod->server_msg(mod,
"Xorg module has wrong version number",
0);
char msg[128];
g_snprintf(msg, sizeof(msg),
"Xorg module has version %d, expected %d",
version, CLIENT_INFO_CURRENT_VERSION);
LOG(LOG_LEVEL_ERROR, "%s", msg);
mod->server_msg(mod, msg, 0);
mod->caps_processing_status = E_CAPS_NOT_OK;
}
break;
Expand Down

0 comments on commit 84970a8

Please sign in to comment.