diff mbox series

[U-Boot] env: ubi: Add missing ENV_NAME

Message ID 20180821135333.30776-1-marex@denx.de
State Accepted
Commit 344ca79509135f8a29f510e2e2b4fab81be187f1
Delegated to: Tom Rini
Headers show
Series [U-Boot] env: ubi: Add missing ENV_NAME | expand

Commit Message

Marek Vasut Aug. 21, 2018, 1:53 p.m. UTC
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...

Signed-off-by: Marek Vasut <marex@denx.de>
---
 env/ubi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Aug. 24, 2018, 8:10 p.m. UTC | #1
On Tue, Aug 21, 2018 at 03:53:33PM +0200, Marek Vasut wrote:

> 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...
> 
> Signed-off-by: Marek Vasut <marex@denx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/env/ubi.c b/env/ubi.c
index eb2346f3a1..1dfdf0a8c8 100644
--- a/env/ubi.c
+++ b/env/ubi.c
@@ -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),
 };