doc: fix mistyped "env flags" command
[pandora-u-boot.git] / boot / image.c
index 88b67bc..073931c 100644 (file)
@@ -42,6 +42,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #else /* USE_HOSTCC */
 #include "mkimage.h"
+#include <linux/kconfig.h>
 #include <u-boot/md5.h>
 #include <time.h>
 
@@ -62,7 +63,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #include <relocate.h>
 #include <linux/lzo.h>
 #include <linux/zstd.h>
-#include <linux/kconfig.h>
 #include <lzma/LzmaTypes.h>
 #include <lzma/LzmaDec.h>
 #include <lzma/LzmaTools.h>
@@ -415,15 +415,20 @@ void image_print_contents(const void *ptr)
  * @type:      OS type (IH_OS_...)
  * @comp_type: Compression type being used (IH_COMP_...)
  * @is_xip:    true if the load address matches the image start
+ * @load:      Load address for printing
  */
-static void print_decomp_msg(int comp_type, int type, bool is_xip)
+static void print_decomp_msg(int comp_type, int type, bool is_xip,
+                            ulong load)
 {
        const char *name = genimg_get_type_name(type);
 
+       /* Shows "Loading Kernel Image" for example */
        if (comp_type == IH_COMP_NONE)
-               printf("   %s %s\n", is_xip ? "XIP" : "Loading", name);
+               printf("   %s %s", is_xip ? "XIP" : "Loading", name);
        else
-               printf("   Uncompressing %s\n", name);
+               printf("   Uncompressing %s", name);
+
+       printf(" to %lx\n", load);
 }
 
 int image_decomp_type(const unsigned char *buf, ulong len)
@@ -448,7 +453,7 @@ int image_decomp(int comp, ulong load, ulong image_start, int type,
        int ret = -ENOSYS;
 
        *load_end = load;
-       print_decomp_msg(comp, type, load == image_start);
+       print_decomp_msg(comp, type, load == image_start, load);
 
        /*
         * Load the image to the right place, decompressing if needed. After