1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Use SYSCTL_OUT_STR() to return strings.

PR:		195668
This commit is contained in:
Ian Lepore 2015-03-14 21:40:51 +00:00
parent 8ddeeebf4b
commit c38c26f8da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280009

View File

@ -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);
}