Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2017 04:50:53 +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: r327098 - head/sys/net
Message-ID:  <201712230450.vBN4or10038018@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Dec 23 04:50:52 2017
New Revision: 327098
URL: https://svnweb.freebsd.org/changeset/base/327098

Log:
  The device tables end with a sentinel in iflib. Don't include the
  sentinel in the output.

Modified:
  head/sys/net/iflib.h

Modified: head/sys/net/iflib.h
==============================================================================
--- head/sys/net/iflib.h	Fri Dec 22 23:27:03 2017	(r327097)
+++ head/sys/net/iflib.h	Sat Dec 23 04:50:52 2017	(r327098)
@@ -176,7 +176,7 @@ typedef struct pci_vendor_info {
 #define IFLIB_PNP_DESCR "U32:vendor;U32:device;U32:subvendor;U32:subdevice;" \
     "U32:revision;U32:class;D:#"
 #define IFLIB_PNP_INFO(b, u, t) \
-    MODULE_PNP_INFO(IFLIB_PNP_DESCR, b, u, t, sizeof(t[0]), nitems(t))
+    MODULE_PNP_INFO(IFLIB_PNP_DESCR, b, u, t, sizeof(t[0]), nitems(t) - 1)
 
 typedef struct if_txrx {
 	int (*ift_txd_encap) (void *, if_pkt_info_t);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712230450.vBN4or10038018>