Skip to contentSkip to conversation

env: ubi: Add missing ENV_NAME

PATCH In review Marek Vasut 2 participants 2 messages Aug 21, 2018 – Aug 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 env: ubi: Add missing ENV_NAME

Add missing environment name for UBI, to prevent this NULL in output:
Loading Environment from <NULL>...
and rather have a valid UBI there:
Loading Environment from UBI...

---
 env/ubi.c | 1 +
 1 file changed, 1 insertion(+)
env/ubi.c +1 -0
index eb2346f3a1..1dfdf0a8c8 100644
@@ -168,6 +168,7 @@ static int env_ubi_load(void)
 
 U_BOOT_ENV_LOCATION(ubi) = {
 	.location	= ENVL_UBI,
+	ENV_NAME("UBI")
 	.load		= env_ubi_load,
 	.save		= env_save_ptr(env_ubi_save),
 };
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Marek Vasut

Add missing environment name for UBI, to prevent this NULL in output:
Loading Environment from <NULL>...
and rather have a valid UBI there:
Loading Environment from UBI...

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180824/a415e203/attachment.sig>