]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: add missing breaks
authorRob Clark <robdclark@gmail.com>
Thu, 30 Nov 2017 14:02:45 +0000 (09:02 -0500)
committerAlexander Graf <agraf@suse.de>
Fri, 1 Dec 2017 21:29:02 +0000 (22:29 +0100)
Otherwise with GUID partition types you would end up with things like:

  .../HD(Part0,Sig6252c819-4624-4995-8d16-abc9cd5d4130)/HD(Part0,MBRType=02,SigType=02)

Signed-off-by: Rob Clark <robdclark@gmail.com>
[agraf: rebased]
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_device_path_to_text.c

index 9e62e4a929cea67fd1c249ae2908e1d4e629233b..7159c974d4d39b7ecef46616d38184ee6bf3ec79 100644 (file)
@@ -154,10 +154,12 @@ static char *dp_media(char *s, struct efi_device_path *dp)
                case SIG_TYPE_GUID:
                        s += sprintf(s, "HD(Part%d,Sig%pUl)",
                                     hddp->partition_number, sig);
+                       break;
                default:
                        s += sprintf(s, "HD(Part%d,MBRType=%02x,SigType=%02x)",
                                     hddp->partition_number, hddp->partmap_type,
                                     hddp->signature_type);
+                       break;
                }
 
                break;