summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-10-21 19:00:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-23 09:10:43 +0200
commitfbc7ee7c5b1d3eba95501d25a4ad799b82e6b94e (patch)
treed0c5b3f1fcd2588cf419c6f8405408d6bcd62fd3 /common
parent1162764b0c0c966b4c24ecd7597bc6ed08363623 (diff)
downloadbarebox-fbc7ee7c5b1d3eba95501d25a4ad799b82e6b94e.tar.gz
partition: include partuuid string in debug string
When debugging partitions detected by barebox, knowing the partuuid can be useful. Include it in the dev_dbg output. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/partitions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/partitions.c b/common/partitions.c
index 574b31f..4162e86 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -54,8 +54,8 @@ static int register_one_partition(struct block_device *blk,
partition_name = basprintf("%s.%d", blk->cdev.name, no);
if (!partition_name)
return -ENOMEM;
- dev_dbg(blk->dev, "Registering partition %s on drive %s\n",
- partition_name, blk->cdev.name);
+ dev_dbg(blk->dev, "Registering partition %s on drive %s (partuuid=%s)\n",
+ partition_name, blk->cdev.name, part->partuuid);
cdev = devfs_add_partition(blk->cdev.name,
start, size, 0, partition_name);
if (IS_ERR(cdev)) {