1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-28 21:14:57 +03:00

Minor debugging log changes to avoid compiler warnings

This commit is contained in:
Graham Nelson 2022-04-13 23:43:02 +01:00
parent 2e55bfa0b0
commit 15976401ec
2 changed files with 4 additions and 7 deletions

View file

@ -194,8 +194,8 @@ text_substitution *TextSubstitutions::new_text_substitution(wording W,
Sequence::queue(&TextSubstitutions::compilation_agent,
STORE_POINTER_text_substitution(ts), desc);
LOGIF(TEXT_SUBSTITUTIONS, "Requesting text routine %d %08x %W %08x\n",
ts->allocation_id, (int) frame, W, R);
LOGIF(TEXT_SUBSTITUTIONS, "Requesting text routine %d for %W, R = %d\n",
ts->allocation_id, W, (R)?(R->allocation_id):(-1));
return ts;
}
@ -225,8 +225,8 @@ frame creating this text substitution to the stack frame compiling it.
=
text_substitution *current_ts_being_compiled = NULL;
int TextSubstitutions::compile_function(text_substitution *ts) {
LOGIF(TEXT_SUBSTITUTIONS, "Compiling text routine %d %08x %W\n",
ts->allocation_id, (int) (ts->using_frame), ts->unsubstituted_text);
LOGIF(TEXT_SUBSTITUTIONS, "Compiling text routine %d %W\n", ts->allocation_id,
ts->unsubstituted_text);
current_ts_being_compiled = ts;
packaging_state save = Functions::begin(ts->ts_function_iname);

View file

@ -140,7 +140,6 @@ should be set if and only if a change has been made to the proposition.
logged as just |<< >>|.
=
int log_addresses = FALSE;
void Propositions::log(pcalc_prop *prop) {
Propositions::write(DL, prop);
}
@ -150,7 +149,6 @@ void Propositions::write(OUTPUT_STREAM, pcalc_prop *prop) {
TRAVERSE_PROPOSITION(p, prop) {
char *bridge = Propositions::debugging_log_text_between(p_prev, p);
if (bridge[0]) WRITE("%s ", bridge);
if (log_addresses) WRITE("%08x=", (unsigned int) p);
Atoms::write(OUT, p);
WRITE(" ");
}
@ -342,7 +340,6 @@ pcalc_prop *Propositions::conjoin(pcalc_prop *existing_body, pcalc_prop *tail) {
@<Report failure to log@> =
LOG("Seriously misguided attempt to conjoin propositions:\n");
log_addresses = TRUE;
LOG("Existing body: $D\n", existing_body);
LOG("Tail: $D\n", tail);