From: Marek Vasut Date: Sun, 10 Dec 2023 21:25:07 +0000 (+0100) Subject: cmd: part: Cover both part type entries with GUID ifdef X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=97135d9f4220e54b38f69a3f2416b2fd9d8f378c;p=u-boot.git cmd: part: Cover both part type entries with GUID ifdef The 'part type' subcommand depends on GUID partition table support. The help text exposes one of two 'part type' subcommand entries, hide both in case GUID partition table support is not enabled to avoid confusing users. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- diff --git a/cmd/part.c b/cmd/part.c index 0ce190005d..c75f85acd5 100644 --- a/cmd/part.c +++ b/cmd/part.c @@ -308,9 +308,9 @@ U_BOOT_CMD( #ifdef CONFIG_PARTITION_TYPE_GUID "part type :\n" " - print partition type\n" -#endif "part type : \n" " - set environment variable to partition type\n" +#endif "part set type\n" " - set partition type for a device\n" "part types\n"