make it compile with -DTESTING

p_tos.cpp p_exe.cpp

committer: jreiser <jreiser> 976919071 +0000
This commit is contained in:
John Reiser
2000-12-15 22:24:31 +00:00
parent f4e422290d
commit 5862bd3de8
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -314,9 +314,9 @@ void PackExe::pack(OutputFile *fo)
{ {
printf("image+relocs %d -> %d\n",imagesize+relocsize,ph.c_len); printf("image+relocs %d -> %d\n",imagesize+relocsize,ph.c_len);
printf("offsets: %d - %d\nmatches: %d - %d\nruns: %d - %d\n", printf("offsets: %d - %d\nmatches: %d - %d\nruns: %d - %d\n",
ph.min_offset_found,ph.max_offset_found, 0/*ph.min_offset_found*/,ph.max_offset_found,
ph.min_match_found,ph.max_match_found, 0/*ph.min_match_found*/,ph.max_match_found,
ph.min_run_found,ph.max_run_found); 0/*ph.min_run_found*/,ph.max_run_found);
} }
#endif #endif
const unsigned packedsize = ph.c_len; const unsigned packedsize = ph.c_len;
+2 -2
View File
@@ -355,7 +355,7 @@ void PackTos::pack(OutputFile *fo)
#if 0 || defined(TESTING) #if 0 || defined(TESTING)
printf("text: %d, data: %d, sym: %d, bss: %d, flags=0x%x\n", printf("text: %d, data: %d, sym: %d, bss: %d, flags=0x%x\n",
i_text, i_data, i_sym, i_bss, (int)fh_flag); i_text, i_data, i_sym, i_bss, (int)ih.fh_flag);
printf("xx1 reloc: %d, overlay: %d, fixup: %d\n", relocsize, overlay, overlay >= 4 ? (int)get_be32(ibuf+t) : -1); printf("xx1 reloc: %d, overlay: %d, fixup: %d\n", relocsize, overlay, overlay >= 4 ? (int)get_be32(ibuf+t) : -1);
#endif #endif
@@ -526,7 +526,7 @@ void PackTos::pack(OutputFile *fo)
printf("old text: %6d, data: %6d, bss: %6d, reloc: %d, overlay: %d\n", printf("old text: %6d, data: %6d, bss: %6d, reloc: %d, overlay: %d\n",
i_text, i_data, i_bss, relocsize, overlay); i_text, i_data, i_bss, relocsize, overlay);
printf("new text: %6d, data: %6d, bss: %6d, dirty_bss: %d, flag=0x%x\n", printf("new text: %6d, data: %6d, bss: %6d, dirty_bss: %d, flag=0x%x\n",
o_text, o_data, o_bss, dirty_bss, (int)fh_flag); o_text, o_data, o_bss, dirty_bss, (int)oh.fh_flag);
#endif #endif
// write new file header, loader and compressed file // write new file header, loader and compressed file