diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-07-11 11:09:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-07-11 11:51:13 +0200 |
commit | 298727bc7931fe878fd72a1fa6f35c18bd7c593c (patch) | |
tree | dab9d223037ae804f52fb8848ec3771b4a5b4567 | |
parent | 9d42c77f126eb394fe369797a49ada67e4495faf (diff) | |
download | barebox-298727bc7931fe878fd72a1fa6f35c18bd7c593c.tar.gz barebox-298727bc7931fe878fd72a1fa6f35c18bd7c593c.tar.xz |
devfs: Fix device name in overlap error message
cpart->name contains the partition name, not the device name. Use
cdev->name instead.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.barebox.org/20220711090915.1487105-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | fs/devfs-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devfs-core.c b/fs/devfs-core.c index dca5e10191..1d8b2664f2 100644 --- a/fs/devfs-core.c +++ b/fs/devfs-core.c @@ -418,7 +418,7 @@ static int check_overlap(struct cdev *cdev, const char *name, loff_t offset, lof conflict: pr_err("New partition %s (0x%08llx-0x%08llx) on %s " "overlaps with partition %s (0x%08llx-0x%08llx), not creating it\n", - name, offset, offset + size - 1, cpart->name, + name, offset, offset + size - 1, cdev->name, cpart->name, cpart_offset, cpart_offset + cpart->size - 1); return -EINVAL; |