fit: Put the indent string into print context
Move the indent string into struct fit_print_ctx so it is available to the printing functions. This avoids having to pass it as a separate parameter. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -976,8 +976,8 @@ static int fit_extract_contents(void *ptr, struct imgtool *itl)
|
||||
printf("Extracted:\n%s Image %u (%s)\n", p,
|
||||
count, fit_get_name(fit, noffset));
|
||||
|
||||
fit_print_init(&ctx, fit);
|
||||
fit_image_print(&ctx, noffset, p);
|
||||
fit_print_init(&ctx, fit, p);
|
||||
fit_image_print(&ctx, noffset);
|
||||
|
||||
return fit_image_extract(fit, noffset,
|
||||
itl->outfile);
|
||||
|
||||
Reference in New Issue
Block a user