--- mon/src/mon.cpp 1999/10/04 21:16:02 1.2 +++ mon/src/mon.cpp 1999/10/05 14:43:41 1.3 @@ -823,7 +823,7 @@ static void set_var(void) fprintf(monout, "No variables defined\n"); else for (Variable *v=first_var; v; v=v->next) - fprintf(monout, "%s = %08lx\n", v->name, v->value); + fprintf(monout, "%s = %08x\n", v->name, v->value); } else if (mon_token == T_NAME) { char var_name[256]; @@ -916,7 +916,7 @@ static void reallocate(void) } if (mon_token == T_END) { - fprintf(monerr, "Buffer size: %08lx bytes\n", mon_mem_size); + fprintf(monerr, "Buffer size: %08x bytes\n", mon_mem_size); return; } @@ -928,7 +928,7 @@ static void reallocate(void) } if ((mem = (uint8 *)realloc(mem, size)) != NULL) - fprintf(monerr, "Buffer size: %08lx bytes\n", mon_mem_size = size); + fprintf(monerr, "Buffer size: %08x bytes\n", mon_mem_size = size); else fprintf(monerr, "Unable to reallocate buffer\n"); } @@ -970,6 +970,9 @@ static void apply(int size) read_func = mon_read_word; write_func = mon_write_word; break; + default: + abort(); + break; } while (adr<=end_adr) { @@ -1139,7 +1142,7 @@ void mon(int argc, char **argv) while (!done) { if (interactive) { char prompt[16]; - sprintf(prompt, "[%08lx]-> ", mon_dot_address); + sprintf(prompt, "[%08x]-> ", mon_dot_address); read_line(prompt); } else { if (argc == 0) {