To allow for more flexible handling of errors, use log_err instead of
printf.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
* Copyright 2018-2021 NXP
*/
+#define LOG_CATEGORY LOGC_ARCH
#include <common.h>
#include <stdlib.h>
#include <errno.h>
}
if (container->tag != 0x87 && container->version != 0x0) {
- printf("Wrong container header\n");
+ log_err("Wrong container header\n");
ret = -ENOENT;
goto end;
}
if (!container->num_images) {
- printf("Wrong container, no image found\n");
+ log_err("Wrong container, no image found\n");
ret = -ENOENT;
goto end;
}