From 87925df2b3f8d308addc5c0fe5a22ae9712ca5ec Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Wed, 20 Jun 2018 20:10:51 +0000 Subject: 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 Reviewed-by: Simon Glass --- tools/default_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/default_image.c') 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; -- cgit v1.2.3