From: Mike Frysinger Date: Thu, 24 Dec 2015 04:30:31 +0000 (-0500) Subject: flthdr: fix print output w/no flags X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b1213d9338717f837a9200c96d56209a2cd42d7d;p=elf2flt.git flthdr: fix print output w/no flags If the file has no flags, make sure we still include the closing paren and newline in the output. --- diff --git a/flthdr.c b/flthdr.c index dfc9107..de31098 100644 --- 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));