From 0afe372ebbf314ea9d20134a65c725d85cd38a82 Mon Sep 17 00:00:00 2001 From: dick Date: Mon, 17 Apr 1989 10:10:59 +0000 Subject: [PATCH] some printf format corrections --- util/int/core.c | 2 +- util/int/disassemble.c | 2 +- util/int/dump.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/util/int/core.c b/util/int/core.c index 9dbe965e9..ddd6ba329 100644 --- a/util/int/core.c +++ b/util/int/core.c @@ -48,7 +48,7 @@ core_dump() fprintf(core_file, "OnTrap=%d\n", OnTrap); fprintf(core_file, "IgnMask=%ld\n", IgnMask); - fprintf(core_file, "TrapPI=%d\n", TrapPI); + fprintf(core_file, "TrapPI=%ld\n", TrapPI); fprintf(core_file, "FRASize=%ld\n", FRASize); fprintf(core_file, "FRA_def=%d\n", FRA_def); diff --git a/util/int/disassemble.c b/util/int/disassemble.c index 0c2a11e03..a02ae7971 100644 --- a/util/int/disassemble.c +++ b/util/int/disassemble.c @@ -1766,7 +1766,7 @@ PRIVATE do_pr_instr(opcode) do_pr_instr(TERT_BASE + nextTCbyte()); break; default: - printf(">>>> bad opcode %d at PC = %lu <<<<\n", + printf(">>>> bad opcode %u at PC = %lu <<<<\n", opcode, TC); break; } diff --git a/util/int/dump.c b/util/int/dump.c index 4ff32a00b..3a2daa600 100644 --- a/util/int/dump.c +++ b/util/int/dump.c @@ -183,11 +183,11 @@ std_rsb(addr) } else if (pi < NProc) { - sprintf(pr_descr, "(%lu,%lu)", + sprintf(pr_descr, "(%ld,%ld)", pi, (long)proctab[pi].pr_nloc); } else { - sprintf(pr_descr, "%lu >>>> ILLEGAL <<<<", pi); + sprintf(pr_descr, "%ld >>>> ILLEGAL <<<<", pi); } LOG((" d1 >> RSB: code = %s, PI = %s, PC = %lu, LB = %lu, LIN = %lu, FIL = %s", displ_code(code), pr_descr, pc, lb, lin, displ_fil(fil)));