diff options
author | ian <ian@FreeBSD.org> | 2017-03-16 03:41:31 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2017-03-16 03:41:31 +0000 |
commit | 543014be4d5e27cffeb396b9b307d7b72d3f35e1 (patch) | |
tree | f5ee3b564945898d0f5158c156edb04c5b6e48e6 /sys | |
parent | 5c55cef0ac086f6290e5fe6c2ee5945f30cdf60f (diff) | |
download | FreeBSD-src-543014be4d5e27cffeb396b9b307d7b72d3f35e1.zip FreeBSD-src-543014be4d5e27cffeb396b9b307d7b72d3f35e1.tar.gz |
MFC r310189:
Fix sscanf() format string to match an argument. This also fixes kernel
build after r310171.
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; } |