env: ubi: Add missing ENV_NAME
authorMarek Vasut <marex@denx.de>
Tue, 21 Aug 2018 13:53:33 +0000 (15:53 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Aug 2018 20:00:48 +0000 (16:00 -0400)
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

index eb2346f3a1fd036cf4629a7c9260bfe3b715c0d3..1dfdf0a8c8a41f768d07023d430d0eafe90acc63 100644 (file)
--- 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),
 };