diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/ti/cpsw/if_cpsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/ti/cpsw/if_cpsw.c b/sys/arm/ti/cpsw/if_cpsw.c index 3feeddd..2e722e1 100644 --- a/sys/arm/ti/cpsw/if_cpsw.c +++ b/sys/arm/ti/cpsw/if_cpsw.c @@ -747,7 +747,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; } |