DRY on buffer sizes. Update to r298420.
sys/geom/geom_disk.c: In disk_attr_changed, don't repeat a buffer size. Reported by: ngie, hselasky MFC after: 4 weeks X-MFC-With: 298420 Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
b753b98b16
commit
1c2c346f09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298439
@ -846,7 +846,8 @@ disk_attr_changed(struct disk *dp, const char *attr, int flag)
|
||||
if (gp != NULL)
|
||||
LIST_FOREACH(pp, &gp->provider, provider)
|
||||
(void)g_attr_changed(pp, attr, flag);
|
||||
snprintf(devnamebuf, 128, "devname=%s%d", dp->d_name, dp->d_unit);
|
||||
snprintf(devnamebuf, sizeof(devnamebuf), "devname=%s%d", dp->d_name,
|
||||
dp->d_unit);
|
||||
devctl_notify("GEOM", "disk", attr, devnamebuf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user