summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-03-26 14:04:23 -0600
committerTom Rini <[email protected]>2025-03-26 14:04:23 -0600
commit3f9e0349c3e8afe45d5bdb2328a16512cfbc2ef1 (patch)
treec38a0339cf60148c6831c7ebf6119668c28774c2
parent47f433d577a0e1e937c12bbdf632119f0c8b492e (diff)
parent4b4d24060ef5ae99c5dca12f39433edc7ccfd741 (diff)
Merge tag 'efi-master-26032025' of https://source.denx.de/u-boot/custodians/u-boot-tpm
A last minute fix from Vincent fixing the text representation of device paths containing IPv4 device path nodes. A missing break; ended up printing IPv4(5.6.7.8,TCP,UDP,0x6,DHCP,1.2.3.4,9.10.11.12,255.255.255.0) instead of IPv4(5.6.7.8,TCP,DHCP,1.2.3.4,9.10.11.12,255.255.255.0)
-rw-r--r--lib/efi_loader/efi_device_path_to_text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c
index f6889cb7399..452ec1b2e8b 100644
--- a/lib/efi_loader/efi_device_path_to_text.c
+++ b/lib/efi_loader/efi_device_path_to_text.c
@@ -181,10 +181,13 @@ static char *dp_msging(char *s, struct efi_device_path *dp)
switch (idp->protocol) {
case IPPROTO_TCP:
s += sprintf(s, "TCP,");
+ break;
case IPPROTO_UDP:
s += sprintf(s, "UDP,");
+ break;
default:
s += sprintf(s, "0x%x,", idp->protocol);
+ break;
}
s += sprintf(s, idp->static_ip_address ? "Static" : "DHCP");
s += sprintf(s, ",%pI4", &idp->local_ip_address);