summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-07-16 20:10:01 -0700
committerTom Rini <trini@ti.com>2013-08-16 13:45:15 -0400
commit1fd1e2f69fdfb99bac792beed8b208d451acb598 (patch)
tree1b63213783ced34fe426fc95654f0ad9f71fb5d3
parentbd4a3997f1869113b7ff5881d507b5baab557a6e (diff)
downloadu-boot-imx-1fd1e2f69fdfb99bac792beed8b208d451acb598.zip
u-boot-imx-1fd1e2f69fdfb99bac792beed8b208d451acb598.tar.gz
u-boot-imx-1fd1e2f69fdfb99bac792beed8b208d451acb598.tar.bz2
image: Display FIT timestamp when booting
The timestamp is shown in fit_print_contents() but for some reason not in fit_image_print(). This seems to be an oversight, since it is the latter which is used by bootm. Add timestamp printing in this case. (There is code duplication in these two function, for looking at in a future patch). Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/image-fit.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 683c1a5..199b4ed 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -343,6 +343,17 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
else
printf("%s\n", desc);
+ if (IMAGE_ENABLE_TIMESTAMP) {
+ time_t timestamp;
+
+ ret = fit_get_timestamp(fit, 0, &timestamp);
+ printf("%s Created: ", p);
+ if (ret)
+ printf("unavailable\n");
+ else
+ genimg_print_time(timestamp);
+ }
+
fit_image_get_type(fit, image_noffset, &type);
printf("%s Type: %s\n", p, genimg_get_type_name(type));