app: aboot: Add debug log for decompression image
Add debug log to indicate if compressed image is decompressed
successfully.
Change-Id: I67e1c3f370fb4de3b2fe7ddd741600d9ef236969
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 88e192d..a7c10a3 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -1036,17 +1036,17 @@
{
out_addr = (unsigned char *)(image_addr + imagesize_actual + page_size);
out_avai_len = target_get_max_flash_size() - imagesize_actual - page_size;
- dprintf(SPEW, "decompress image start\n");
+ dprintf(INFO, "decompressing kernel image: start\n");
rc = decompress((unsigned char *)(image_addr + page_size),
hdr->kernel_size, out_addr, out_avai_len,
&dtb_offset, &out_len);
if (rc)
{
- dprintf(CRITICAL, "decompress image failed!!!\n");
+ dprintf(CRITICAL, "decompressing kernel image failed!!!\n");
ASSERT(0);
}
- dprintf(SPEW, "decompressed image finished.\n");
+ dprintf(INFO, "decompressing kernel image: done\n");
kptr = (struct kernel64_hdr *)out_addr;
kernel_start_addr = out_addr;
kernel_size = out_len;
@@ -1110,17 +1110,17 @@
unsigned int compressed_size = 0;
out_addr += out_len;
out_avai_len -= out_len;
- dprintf(SPEW, "decompress dtb start\n");
+ dprintf(INFO, "decompressing dtb: start\n");
rc = decompress((unsigned char *)dt_table_offset + dt_entry.offset,
dt_entry.size, out_addr, out_avai_len,
&compressed_size, &dtb_size);
if (rc)
{
- dprintf(CRITICAL, "decompress dtb failed!!!\n");
+ dprintf(CRITICAL, "decompressing dtb failed!!!\n");
ASSERT(0);
}
- dprintf(SPEW, "decompressed dtb finished.\n");
+ dprintf(INFO, "decompressing dtb: done\n");
best_match_dt_addr = out_addr;
} else {
best_match_dt_addr = (unsigned char *)dt_table_offset + dt_entry.offset;
@@ -1697,17 +1697,17 @@
{
out_addr = (unsigned char *)target_get_scratch_address() + scratch_offset;
out_avai_len = target_get_max_flash_size() - scratch_offset;
- dprintf(SPEW, "decompress dtb start\n");
+ dprintf(INFO, "decompressing dtb: start\n");
rc = decompress(best_match_dt_addr,
dt_entry.size, out_addr, out_avai_len,
&compressed_size, &dtb_size);
if (rc)
{
- dprintf(CRITICAL, "decompress dtb failed!!!\n");
+ dprintf(CRITICAL, "decompressing dtb failed!!!\n");
ASSERT(0);
}
- dprintf(SPEW, "decompressed dtb finished.\n");
+ dprintf(INFO, "decompressing dtb: done\n");
best_match_dt_addr = out_addr;
} else {
dtb_size = dt_entry.size;
@@ -1816,17 +1816,17 @@
out_addr = (unsigned char *)target_get_scratch_address();
out_addr = (unsigned char *)(out_addr + image_actual + page_size);
out_avai_len = target_get_max_flash_size() - image_actual - page_size;
- dprintf(SPEW, "decompress image start\n");
+ dprintf(INFO, "decompressing kernel image: start\n");
ret = decompress((unsigned char *)(ptr + page_size),
hdr->kernel_size, out_addr, out_avai_len,
&dtb_offset, &out_len);
if (ret)
{
- dprintf(CRITICAL, "decompress image failed!!!\n");
+ dprintf(CRITICAL, "decompressing image failed!!!\n");
ASSERT(0);
}
- dprintf(SPEW, "decompressed image finished.\n");
+ dprintf(INFO, "decompressing kernel image: done\n");
kptr = (struct kernel64_hdr *)out_addr;
kernel_start_addr = out_addr;
kernel_size = out_len;