Add a format string to call to g_new_providerf() found when compiling
mips64 target with clang.

Reviewed by:	brooks
This commit is contained in:
Sean Bruno 2017-02-06 11:37:20 +00:00
parent 8df1c280b8
commit 84c90bee4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313338

View file

@ -171,7 +171,7 @@ gxemul_disk_attach_geom(void *arg, int flag)
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);