Date: Wed, 30 May 2018 15:08:46 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334383 - head/lib/libdevinfo Message-ID: <201805301508.w4UF8kVG008718@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805301508.w4UF8kVG008718>