summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-12-06 15:20:06 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-12-06 15:22:38 +0100
commit6eefc418dcfc51651da4917d6424b59eaa9770f5 (patch)
tree49433d2be7ca070b8b660c7caa951678a4e670f9 /utils/imxtools/sbtools
parent3440f3518efa4ac58e4b17b517f3532353ac2fbb (diff)
downloadrockbox-6eefc418dcfc51651da4917d6424b59eaa9770f5.tar.gz
rockbox-6eefc418dcfc51651da4917d6424b59eaa9770f5.tar.bz2
rockbox-6eefc418dcfc51651da4917d6424b59eaa9770f5.zip
imxtools/sbtools/elf: fix debug code
Change-Id: If043eb214417a41f71e6c05fc6a725eb8f983373
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r--utils/imxtools/sbtools/elf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/imxtools/sbtools/elf.c b/utils/imxtools/sbtools/elf.c
index c875cc7963..d15c27b206 100644
--- a/utils/imxtools/sbtools/elf.c
+++ b/utils/imxtools/sbtools/elf.c
@@ -694,12 +694,12 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read,
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 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read,
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 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read,
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 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read,
}
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);
}
}