summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/sbtoelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/sbtools/sbtoelf.c')
-rw-r--r--utils/imxtools/sbtools/sbtoelf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/imxtools/sbtools/sbtoelf.c b/utils/imxtools/sbtools/sbtoelf.c
index e68f5e6e06..75dc58e4bd 100644
--- a/utils/imxtools/sbtools/sbtoelf.c
+++ b/utils/imxtools/sbtools/sbtoelf.c
@@ -86,10 +86,10 @@ static void extract_elf_section(struct elf_params_t *elf, int count, uint32_t id
86 sprintf(filename, "%s%s.%d.elf", g_out_prefix, name, count); 86 sprintf(filename, "%s%s.%d.elf", g_out_prefix, name, count);
87 if(g_debug) 87 if(g_debug)
88 printf("Write boot section %s to %s\n", name, filename); 88 printf("Write boot section %s to %s\n", name, filename);
89 89
90 FILE *fd = fopen(filename, "wb"); 90 FILE *fd = fopen(filename, "wb");
91 free(filename); 91 free(filename);
92 92
93 if(fd == NULL) 93 if(fd == NULL)
94 return; 94 return;
95 if(g_elf_simplify) 95 if(g_elf_simplify)
@@ -112,7 +112,7 @@ static void extract_sb_section(struct sb_section_t *sec)
112 if(g_debug) 112 if(g_debug)
113 printf("Write data section %s to %s\n", sec_name, filename); 113 printf("Write data section %s to %s\n", sec_name, filename);
114 free(filename); 114 free(filename);
115 115
116 for(int j = 0; j < sec->nr_insts; j++) 116 for(int j = 0; j < sec->nr_insts; j++)
117 { 117 {
118 assert(sec->insts[j].inst == SB_INST_DATA); 118 assert(sec->insts[j].inst == SB_INST_DATA);
@@ -494,7 +494,7 @@ int main(int argc, char **argv)
494 } 494 }
495 if(loopback) 495 if(loopback)
496 sb1_write_file(file, loopback); 496 sb1_write_file(file, loopback);
497 497
498 sb1_free(file); 498 sb1_free(file);
499 } 499 }
500 else 500 else
@@ -504,6 +504,6 @@ int main(int argc, char **argv)
504 return 1; 504 return 1;
505 } 505 }
506 clear_keys(); 506 clear_keys();
507 507
508 return 0; 508 return 0;
509} 509}