Author: ian Date: Sat Mar 14 21:40:51 2015 New Revision: 280009 URL: https://svnweb.freebsd.org/changeset/base/280009
Log: Use SYSCTL_OUT_STR() to return strings. PR: 195668 Modified: head/sys/mips/rmi/dev/iic/at24co2n.c Modified: head/sys/mips/rmi/dev/iic/at24co2n.c ============================================================================== --- head/sys/mips/rmi/dev/iic/at24co2n.c Sat Mar 14 21:40:33 2015 (r280008) +++ head/sys/mips/rmi/dev/iic/at24co2n.c Sat Mar 14 21:40:51 2015 (r280009) @@ -84,7 +84,7 @@ at24co2n_mac_sysctl(SYSCTL_HANDLER_ARGS) p = sc->sc_mac_addr; len = snprintf(buf, sizeof(buf), "%02x:%02x:%02x:%02x:%02x:%02x", p[0], p[1], p[2], p[3], p[4], p[5]); - return SYSCTL_OUT(req, buf, len); + return SYSCTL_OUT_STR(req, buf); } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"