When a symbol name can't be resolved, return "??" as the name, rather

than "Unknown func", in order to avoid putting spaces in what ideally
is a string separated by white space.
This commit is contained in:
Robert Watson 2007-12-03 14:44:35 +00:00
parent 4a95df55c3
commit 56905239ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174222

View File

@ -208,7 +208,7 @@ stack_symbol(vm_offset_t pc, char *namebuf, u_int buflen, long *offset)
if (linker_search_symbol_name((caddr_t)pc, namebuf, buflen,
offset) != 0) {
*offset = 0;
strlcpy(namebuf, "Unknown func", buflen);
strlcpy(namebuf, "??", buflen);
}
}
@ -220,7 +220,7 @@ stack_symbol_ddb(vm_offset_t pc, char *namebuf, u_int buflen, long *offset)
if (linker_ddb_search_symbol_name((caddr_t)pc, namebuf, buflen,
offset) != 0) {
*offset = 0;
strlcpy(namebuf, "Unknown func", buflen);
strlcpy(namebuf, "??", buflen);
};
}
#endif