octeon_ebt3000_cf: eliminate 'format string is not a string literal' warning
Reported by: Clang MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
ed9652da5f
commit
7a8d38a717
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323039
@ -682,7 +682,8 @@ static void cf_attach_geom (void *arg, int flag)
|
||||
cf_priv = (struct cf_priv *) arg;
|
||||
cf_priv->cf_geom = g_new_geomf(&g_cf_class, "cf%d", device_get_unit(cf_priv->dev));
|
||||
cf_priv->cf_geom->softc = cf_priv;
|
||||
cf_priv->cf_provider = g_new_providerf(cf_priv->cf_geom, cf_priv->cf_geom->name);
|
||||
cf_priv->cf_provider = g_new_providerf(cf_priv->cf_geom, "%s",
|
||||
cf_priv->cf_geom->name);
|
||||
cf_priv->cf_provider->sectorsize = cf_priv->drive_param.sector_size;
|
||||
cf_priv->cf_provider->mediasize = cf_priv->drive_param.nr_sectors * cf_priv->cf_provider->sectorsize;
|
||||
g_error_provider(cf_priv->cf_provider, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user