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
@ -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…
x
Reference in New Issue
Block a user