Message ID | 20221018151318.167543-3-tim.gardner@canonical.com |
---|---|
State | New |
Headers | show |
Series | [jammy/focal,linux] md: Replace snprintf with scnprintf | expand |
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 1a2b9364e170..cc62f12900b2 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -48,7 +48,7 @@ static void dump_zones(struct mddev *mddev) int len = 0; for (k = 0; k < conf->strip_zone[j].nb_dev; k++) - len += snprintf(line+len, 200-len, "%s%s", k?"/":"", + len += scnprintf(line+len, 200-len, "%s%s", k?"/":"", bdevname(conf->devlist[j*raid_disks + k]->bdev, b)); pr_debug("md: zone%d=[%s]\n", j, line);