svn commit: r315366 - stable/11/sys/arm/ti/cpsw
Ian Lepore
ian at FreeBSD.org
Thu Mar 16 03:41:32 UTC 2017
Author: ian
Date: Thu Mar 16 03:41:31 2017
New Revision: 315366
URL: https://svnweb.freebsd.org/changeset/base/315366
Log:
MFC r310189:
Fix sscanf() format string to match an argument. This also fixes kernel
build after r310171.
Modified:
stable/11/sys/arm/ti/cpsw/if_cpsw.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/arm/ti/cpsw/if_cpsw.c
==============================================================================
--- stable/11/sys/arm/ti/cpsw/if_cpsw.c Thu Mar 16 03:24:15 2017 (r315365)
+++ stable/11/sys/arm/ti/cpsw/if_cpsw.c Thu Mar 16 03:41:31 2017 (r315366)
@@ -747,7 +747,7 @@ cpsw_get_fdt_data(struct cpsw_softc *sc,
for (child = OF_child(sc->node); child != 0; child = OF_peer(child)) {
if (OF_getprop_alloc(child, "name", 1, (void **)&name) < 0)
continue;
- if (sscanf(name, "slave@%x", &mdio_child_addr) != 1) {
+ if (sscanf(name, "slave@%lx", &mdio_child_addr) != 1) {
OF_prop_free(name);
continue;
}
More information about the svn-src-stable-11
mailing list