Revert "block: print symbolic error name instead of error code"

This reverts commit 5e674af9b4.
This commit is contained in:
Ksawlii 2024-11-24 00:23:28 +01:00
parent b18c91a11b
commit 9f6606ad3a

View file

@ -692,8 +692,8 @@ static bool blk_add_partition(struct gendisk *disk, struct block_device *bdev,
part = add_partition(disk, p, from, size, state->parts[p].flags,
&state->parts[p].info);
if (IS_ERR(part) && PTR_ERR(part) != -ENXIO) {
printk(KERN_ERR " %s: p%d could not be added: %pe\n",
disk->disk_name, p, part);
printk(KERN_ERR " %s: p%d could not be added: %ld\n",
disk->disk_name, p, -PTR_ERR(part));
return true;
}