- change bx_snprintf back to normal name

This commit is contained in:
Bryce Denney 2001-04-10 01:57:27 +00:00
parent cfbac2ee2c
commit 96174271f9

View File

@ -1242,7 +1242,7 @@ bx_dbg_symbolic_address(Bit32u context, Bit32u eip, Bit32u base)
{
static char buf[80];
if (base != 0) {
bx_snprintf (buf, 80, "non-zero base");
snprintf (buf, 80, "non-zero base");
return buf;
}
// Look up this context
@ -1251,17 +1251,17 @@ bx_dbg_symbolic_address(Bit32u context, Bit32u eip, Bit32u base)
// Try global context
cntx = context_t::get_context(0);
if (!cntx) {
bx_snprintf (buf, 80, "unknown context");
snprintf (buf, 80, "unknown context");
return buf;
}
}
symbol_entry_t* entr = cntx->get_symbol_entry(eip);
if (!entr) {
bx_snprintf (buf, 80, "no symbol");
snprintf (buf, 80, "no symbol");
return buf;
}
bx_snprintf (buf, 80, "%s+%x", entr->name, eip - entr->start);
snprintf (buf, 80, "%s+%x", entr->name, eip - entr->start);
return buf;
}