From e5b16f1d0ebcd0dc201e07d9b9958b640be14126 Mon Sep 17 00:00:00 2001 From: Svatopluk Kraus Date: Sat, 17 Dec 2016 18:03:03 +0000 Subject: [PATCH] Fix sscanf() format string to match an argument. This also fixes kernel build after r310171. MFC after: 1 weeks --- sys/arm/ti/cpsw/if_cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/ti/cpsw/if_cpsw.c b/sys/arm/ti/cpsw/if_cpsw.c index 4dd0ac8f6fcf..355a423eb6a7 100644 --- a/sys/arm/ti/cpsw/if_cpsw.c +++ b/sys/arm/ti/cpsw/if_cpsw.c @@ -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; }