[U-Boot] [PATCH] iso: Reduce verbosity on test call

Alexander Graf agraf at suse.de
Thu Oct 5 18:14:01 UTC 2017


The test callback into the partition callback struct is used by
the "part list" command on the command line. That command is used
by the distro script.

With verb=1 set, "part list" thus throws a lot of warnings about
partitions it can't find when an upper layer searches for partitions.

So let's reduce verbosity to bring it to the same level of noise
as the other partition targets.

Signed-off-by: Alexander Graf <agraf at suse.de>
---
 disk/part_iso.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk/part_iso.c b/disk/part_iso.c
index 8aef251f4e..a7fb0a0975 100644
--- a/disk/part_iso.c
+++ b/disk/part_iso.c
@@ -228,7 +228,7 @@ static int part_test_iso(struct blk_desc *dev_desc)
 {
 	disk_partition_t info;
 
-	return part_get_info_iso_verb(dev_desc, 1, &info, 1);
+	return part_get_info_iso_verb(dev_desc, 1, &info, 0);
 }
 
 U_BOOT_PART_TYPE(iso) = {
-- 
2.12.3



More information about the U-Boot mailing list