[client] report the host version on mismatch if possible

This commit is contained in:
Geoffrey McRae 2020-05-29 14:24:06 +10:00
parent 6d296f2b44
commit d7921c5d5f
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
B2-rc2-3-g553e2830bb+1 B2-rc2-4-g6d296f2b44+1

View File

@ -1483,7 +1483,11 @@ static int lg_run()
DEBUG_ERROR("Please install the matching host application for this client"); DEBUG_ERROR("Please install the matching host application for this client");
if (magicMatches) if (magicMatches)
{
DEBUG_ERROR("Expected KVMFR version %d, got %d", KVMFR_VERSION, udata->version); DEBUG_ERROR("Expected KVMFR version %d, got %d", KVMFR_VERSION, udata->version);
if (udata->version >= 2)
DEBUG_ERROR("Host version: %s", udata->hostver);
}
else else
DEBUG_ERROR("Invalid KVMFR magic"); DEBUG_ERROR("Invalid KVMFR magic");