Author: imp
Date: Thu Feb 13 03:37:11 2020
New Revision: 357853
URL: https://svnweb.freebsd.org/changeset/base/357853

Log:
  Use INT instead of string for the ints. Because the string "I" was right, the
  old code appeared to work. This was a cut and paste error.
  
  Noticed by: rpokala@

Modified:
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c Thu Feb 13 03:13:29 2020        (r357852)
+++ head/sys/cam/scsi/scsi_da.c Thu Feb 13 03:37:11 2020        (r357853)
@@ -2328,11 +2328,11 @@ dasysctlinit(void *context, int pending)
            softc, 0, daflagssysctl, "A",
            "Flags for drive");
        SYSCTL_ADD_PROC(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree),
-           OID_AUTO, "rotating", CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE,
+           OID_AUTO, "rotating", CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE,
            &softc->flags, DA_FLAG_ROTATING, dabitsysctl, "I",
            "Rotating media *DEPRECATED* gone in FreeBSD 14");
        SYSCTL_ADD_PROC(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree),
-           OID_AUTO, "unmapped_io", CTLTYPE_STRING | CTLFLAG_RD | 
CTLFLAG_MPSAFE,
+           OID_AUTO, "unmapped_io", CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE,
            &softc->flags, DA_FLAG_UNMAPPEDIO, dabitsysctl, "I",
            "Unmapped I/O support *DEPRECATED* gone in FreeBSD 14");
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to