summaryrefslogtreecommitdiff
path: root/tools/default_image.c
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-06-20 23:10:51 +0300
committerTom Rini <trini@konsulko.com>2018-07-10 23:56:00 +0300
commit87925df2b3f8d308addc5c0fe5a22ae9712ca5ec (patch)
treeed865fbf644bf7f167c6227d19430e584f17156e /tools/default_image.c
parent67a2616af18bbb38905b90ed1c6b66659671e1da (diff)
downloadu-boot-87925df2b3f8d308addc5c0fe5a22ae9712ca5ec.tar.xz
mkimage: Refactor imagetool_get_source_date to take command name
So we can use imagetool_get_source_date() from callers who do not have the image tool params struct, just pass in the command name for the error message. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Simon Glass <sjg@chromum.org>
Diffstat (limited to 'tools/default_image.c')
-rw-r--r--tools/default_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/default_image.c b/tools/default_image.c
index 4abff4543a..4b7d1ed4a1 100644
--- a/tools/default_image.c
+++ b/tools/default_image.c
@@ -100,7 +100,7 @@ static void image_set_header(void *ptr, struct stat *sbuf, int ifd,
sizeof(image_header_t)),
sbuf->st_size - sizeof(image_header_t));
- time = imagetool_get_source_date(params, sbuf->st_mtime);
+ time = imagetool_get_source_date(params->cmdname, sbuf->st_mtime);
ep = params->ep;
addr = params->addr;