Date: Thu, 16 Mar 2017 03:41:31 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315366 - stable/11/sys/arm/ti/cpsw Message-ID: <201703160341.v2G3fVrQ012804@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703160341.v2G3fVrQ012804>