]> git.wh0rd.org Git - elf2flt.git/commitdiff
flthdr: fix print output w/no flags
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Dec 2015 04:30:31 +0000 (23:30 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Dec 2015 04:30:31 +0000 (23:30 -0500)
If the file has no flags, make sure we still include the closing paren
and newline in the output.

flthdr.c

index dfc9107d654c2c4a1b1732c9408825eec54a00aa..de310984532cdfb1610233dd24a6a39dc9d6a772 100644 (file)
--- a/flthdr.c
+++ b/flthdr.c
@@ -138,8 +138,8 @@ process_file(char *ifile, char *ofile)
                                printf("Kernel-Traced-Load ");
                        if (old_flags & FLAT_FLAG_L1STK)
                                printf("L1-Scratch-Stack ");
-                       printf(")\n");
                }
+               printf(")\n");
 
                if (print_relocs) {
                        uint32_t *relocs = xcalloc(reloc_count, sizeof(uint32_t));