svn commit: r313338 - head/sys/dev/gxemul/disk
Sean Bruno
sbruno at FreeBSD.org
Mon Feb 6 11:37:21 UTC 2017
Author: sbruno
Date: Mon Feb 6 11:37:20 2017
New Revision: 313338
URL: https://svnweb.freebsd.org/changeset/base/313338
Log:
gxemul:
Add a format string to call to g_new_providerf() found when compiling
mips64 target with clang.
Reviewed by: brooks
Modified:
head/sys/dev/gxemul/disk/gxemul_disk.c
Modified: head/sys/dev/gxemul/disk/gxemul_disk.c
==============================================================================
--- head/sys/dev/gxemul/disk/gxemul_disk.c Mon Feb 6 10:57:54 2017 (r313337)
+++ head/sys/dev/gxemul/disk/gxemul_disk.c Mon Feb 6 11:37:20 2017 (r313338)
@@ -171,7 +171,7 @@ gxemul_disk_attach_geom(void *arg, int f
sc->sc_geom = g_new_geomf(&g_gxemul_disk_class, "%s", device_get_nameunit(sc->sc_dev));
sc->sc_geom->softc = sc;
- sc->sc_provider = g_new_providerf(sc->sc_geom, sc->sc_geom->name);
+ sc->sc_provider = g_new_providerf(sc->sc_geom, "%s", sc->sc_geom->name);
sc->sc_provider->sectorsize = GXEMUL_DISK_DEV_BLOCKSIZE;
sc->sc_provider->mediasize = sc->sc_size;
g_error_provider(sc->sc_provider, 0);
More information about the svn-src-all
mailing list