![]() ![]() | ![]() |
version 1.6, 2002/07/24 14:06:27 | version 1.7, 2003/03/28 23:33:27 | ||
---|---|---|---|
|
|
||
if (name == NULL) { | if (name == NULL) { | ||
snprintf(buf, buflen, "0x%lx", pc); | snprintf(buf, buflen, "0x%lx", pc); | ||
} else { | } else { | ||
snprintf(buf, buflen, "%s+0x%lx(0x%lx)", name, offs, pc); | if (offs) | ||
snprintf(buf, buflen, "%s+0x%lx(0x%lx)", | |||
name, offs, pc); | |||
else | |||
snprintf(buf, buflen, "%s(0x%lx)", name, pc); | |||
} | } | ||
return (buf); | return (buf); |