summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi/if_wi.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-01-19 17:04:07 +0000
committermdf <mdf@FreeBSD.org>2011-01-19 17:04:07 +0000
commit6648b8cede12bffb36e7260cfcf022cf2315acf1 (patch)
tree5e1c41064fb9146dbfbbbd14965e9bed5fb07985 /sys/dev/wi/if_wi.c
parenta7310f271d99214ed08e3b1b382ffcd076a9d2b5 (diff)
downloadFreeBSD-src-6648b8cede12bffb36e7260cfcf022cf2315acf1.zip
FreeBSD-src-6648b8cede12bffb36e7260cfcf022cf2315acf1.tar.gz
sysctl(8) should use the CTLTYPE to determine the type of data when
reading. (This was already done for writing to a sysctl). This requires all SYSCTL setups to specify a type. Most of them are now checked at compile-time. Remove SYSCTL_*X* sysctl additions as the print being in hex should be controlled by the -x flag to sysctl(8). Succested by: bde
Diffstat (limited to 'sys/dev/wi/if_wi.c')
-rw-r--r--sys/dev/wi/if_wi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index fe0d903..69db6a7 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -295,7 +295,7 @@ wi_attach(device_t dev)
SYSCTL_ADD_INT(sctx, SYSCTL_CHILDREN(soid), OID_AUTO,
"pri_version", CTLFLAG_RD, &sc->sc_pri_firmware_ver, 0,
"Primary Firmware version");
- SYSCTL_ADD_XINT(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "nic_id",
+ SYSCTL_ADD_UINT(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "nic_id",
CTLFLAG_RD, &sc->sc_nic_id, 0, "NIC id");
SYSCTL_ADD_STRING(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "nic_name",
CTLFLAG_RD, sc->sc_nic_name, 0, "NIC name");
OpenPOWER on IntegriCloud