mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
gxemul:
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:
parent
8df1c280b8
commit
84c90bee4d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313338
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue