diff options
author | mdf <mdf@FreeBSD.org> | 2011-01-19 17:04:07 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-01-19 17:04:07 +0000 |
commit | 6648b8cede12bffb36e7260cfcf022cf2315acf1 (patch) | |
tree | 5e1c41064fb9146dbfbbbd14965e9bed5fb07985 /sys/cam/scsi | |
parent | a7310f271d99214ed08e3b1b382ffcd076a9d2b5 (diff) | |
download | FreeBSD-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/cam/scsi')
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index ad58ac4..3d2c9bc 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1127,7 +1127,7 @@ dasysctlinit(void *context, int pending) struct ccb_trans_settings_fc *fc = &cts.xport_specific.fc; if (fc->valid & CTS_FC_VALID_WWPN) { softc->wwpn = fc->wwpn; - SYSCTL_ADD_X64(&softc->sysctl_ctx, + SYSCTL_ADD_UQUAD(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), OID_AUTO, "wwpn", CTLFLAG_RD, &softc->wwpn, "World Wide Port Name"); |