diff options
Diffstat (limited to 'utils/imxtools/sbtools/rsrc.c')
-rw-r--r-- | utils/imxtools/sbtools/rsrc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/imxtools/sbtools/rsrc.c b/utils/imxtools/sbtools/rsrc.c index 8967c0ed15..a3bc150fa1 100644 --- a/utils/imxtools/sbtools/rsrc.c +++ b/utils/imxtools/sbtools/rsrc.c | |||
@@ -161,12 +161,12 @@ static bool read_entries(struct rsrc_file_t *f, void *u, | |||
161 | printf(RED, "%c", isprint(p[i]) ? p[i] : '.'); | 161 | printf(RED, "%c", isprint(p[i]) ? p[i] : '.'); |
162 | } | 162 | } |
163 | printf(OFF, "\n"); | 163 | printf(OFF, "\n"); |
164 | 164 | ||
165 | if(RSRC_TABLE_ENTRY_TYPE(te) == RSRC_TYPE_NESTED) | 165 | if(RSRC_TABLE_ENTRY_TYPE(te) == RSRC_TYPE_NESTED) |
166 | { | 166 | { |
167 | char *p = prefix + strlen(prefix); | 167 | char *p = prefix + strlen(prefix); |
168 | sprintf(p, "%s| ", RED); | 168 | sprintf(p, "%s| ", RED); |
169 | 169 | ||
170 | bool ok = read_entries(f, u, cprintf, err, | 170 | bool ok = read_entries(f, u, cprintf, err, |
171 | RSRC_TABLE_ENTRY_OFFSET(te), index, | 171 | RSRC_TABLE_ENTRY_OFFSET(te), index, |
172 | level - 1, prefix); | 172 | level - 1, prefix); |
@@ -175,7 +175,7 @@ static bool read_entries(struct rsrc_file_t *f, void *u, | |||
175 | *p = 0; | 175 | *p = 0; |
176 | } | 176 | } |
177 | } | 177 | } |
178 | 178 | ||
179 | return true; | 179 | return true; |
180 | #undef printf | 180 | #undef printf |
181 | #undef fatal | 181 | #undef fatal |
@@ -220,7 +220,7 @@ struct rsrc_file_t *rsrc_read_memory(void *_buf, size_t filesize, void *u, | |||
220 | bool ok = read_entries(rsrc_file, u, cprintf, err, RSRC_SECTOR_SIZE, 0, 3, prefix); | 220 | bool ok = read_entries(rsrc_file, u, cprintf, err, RSRC_SECTOR_SIZE, 0, 3, prefix); |
221 | if(!ok) | 221 | if(!ok) |
222 | fatal(*err, "Error while parsing rsrc table\n"); | 222 | fatal(*err, "Error while parsing rsrc table\n"); |
223 | 223 | ||
224 | return rsrc_file; | 224 | return rsrc_file; |
225 | #undef printf | 225 | #undef printf |
226 | #undef fatal | 226 | #undef fatal |
@@ -253,4 +253,4 @@ void rsrc_dump(struct rsrc_file_t *file, void *u, rsrc_color_printf cprintf) | |||
253 | #undef printf | 253 | #undef printf |
254 | #undef print_hex | 254 | #undef print_hex |
255 | } | 255 | } |
256 | 256 | ||