svn commit: r334383 - head/lib/libdevinfo
Warner Losh
imp at FreeBSD.org
Wed May 30 15:08:47 UTC 2018
Author: imp
Date: Wed May 30 15:08:46 2018
New Revision: 334383
URL: https://svnweb.freebsd.org/changeset/base/334383
Log:
There's no meaningful errno when there's a version mismatch, so use
warnx. Also, report the mis-matched versions.
Modified:
head/lib/libdevinfo/devinfo.c
Modified: head/lib/libdevinfo/devinfo.c
==============================================================================
--- head/lib/libdevinfo/devinfo.c Wed May 30 14:18:19 2018 (r334382)
+++ head/lib/libdevinfo/devinfo.c Wed May 30 15:08:46 2018 (r334383)
@@ -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);
More information about the svn-src-all
mailing list