Fix sscanf() format string to match an argument. This also fixes kernel
build after r310171. MFC after: 1 weeks
This commit is contained in:
parent
9e373074b7
commit
e5b16f1d0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310189
@ -746,7 +746,7 @@ cpsw_get_fdt_data(struct cpsw_softc *sc, int port)
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user