imxtools/sbtools/elf: fix debug code
Change-Id: If043eb214417a41f71e6c05fc6a725eb8f983373
diff --git a/utils/imxtools/sbtools/elf.c b/utils/imxtools/sbtools/elf.c
index c875cc7..d15c27b 100644
--- a/utils/imxtools/sbtools/elf.c
+++ b/utils/imxtools/sbtools/elf.c
@@ -694,12 +694,12 @@
elf_add_load_section(params, shdr[i].sh_addr, shdr[i].sh_size, data, sec_name);
free(data);
- printf(user, false, "create load segment for %s\n", sec_name);
+ printf(user, false, OFF, "create load segment for %s\n", sec_name);
}
else if(shdr[i].sh_type == SHT_NOBITS && shdr[i].sh_flags & SHF_ALLOC)
{
elf_add_fill_section(params, shdr[i].sh_addr, shdr[i].sh_size, 0, sec_name);
- printf(user, false, "create fill segment for %s\n", sec_name);
+ printf(user, false, OFF, "create fill segment for %s\n", sec_name);
}
else if(shdr[i].sh_type == SHT_SYMTAB)
{
@@ -714,7 +714,7 @@
Elf32_Sym *symdata = elf_load_section(&shdr[i], read, printf, user);
if(!symdata)
{
- printf(user, true, "cannot read elf section %s\n", sec_name);
+ printf(user, true, GREY, "cannot read elf section %s\n", sec_name);
free(symstrtab);
goto Lerr;
}
@@ -743,7 +743,7 @@
case STT_OBJECT: sym->type = ESYT_OBJECT; break;
case STT_NOTYPE: default: sym->type = ESYT_NOTYPE; break;
}
- printf(user, false, "add symbol %s at %#x, type %d, size %d, section %s\n",
+ printf(user, false, OFF, "add symbol %s at %#x, type %d, size %d, section %s\n",
sym->name, sym->addr, sym->type, sym->size, sym->section);
}
free(symdata);
@@ -751,7 +751,7 @@
}
else
{
- printf(user, false, "filter out %s, type %d\n", sec_name, shdr[i].sh_type);
+ printf(user, false, OFF, "filter out %s, type %d\n", sec_name, shdr[i].sh_type);
}
}