There's no meaningful errno when there's a version mismatch, so use

warnx. Also, report the mis-matched versions.
This commit is contained in:
Warner Losh 2018-05-30 15:08:46 +00:00
parent abf7742a1c
commit 51a9cfbf60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334383

View File

@ -125,7 +125,8 @@ devinfo_init(void)
}
if ((ub_size != sizeof(ubus)) ||
(ubus.ub_version != BUS_USER_VERSION)) {
warn("kernel bus interface version mismatch");
warnx("kernel bus interface version mismatch: kernel %d expected %d",
ubus.ub_version, BUS_USER_VERSION);
return(EINVAL);
}
debug("generation count is %d", ubus.ub_generation);