summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_stack.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-12-03 14:44:35 +0000
committerrwatson <rwatson@FreeBSD.org>2007-12-03 14:44:35 +0000
commit0c4e2d79d01134c89fafec263be93c2fd9606d77 (patch)
tree7647dd68717ab72c1f5e45070db4d51db21e6074 /sys/kern/subr_stack.c
parente6b288244282be37d08070caa0e7994d653c86b4 (diff)
downloadFreeBSD-src-0c4e2d79d01134c89fafec263be93c2fd9606d77.zip
FreeBSD-src-0c4e2d79d01134c89fafec263be93c2fd9606d77.tar.gz
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.
Diffstat (limited to 'sys/kern/subr_stack.c')
-rw-r--r--sys/kern/subr_stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_stack.c b/sys/kern/subr_stack.c
index db03ccf..c2b2cc0 100644
--- a/sys/kern/subr_stack.c
+++ b/sys/kern/subr_stack.c
@@ -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
OpenPOWER on IntegriCloud