Skip to content

Commit 9dd6c3b

Browse files
committed
Fix incorrect formatting when no symbol name is available.
1 parent 195a539 commit 9dd6c3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Python/traceback.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,9 +1221,8 @@ _Py_backtrace_symbols_fd(int fd, void *const *array, Py_ssize_t size)
12211221

12221222
if (info[i].dli_sname == NULL
12231223
&& info[i].dli_saddr == 0) {
1224-
dprintf(fd, " Binary file \"%s\", at %s [%p]\n",
1225-
info[i].dli_fname ?: "",
1226-
info[i].dli_sname ?: "",
1224+
dprintf(fd, " Binary file \"%s\" [%p]\n",
1225+
info[i].dli_fname ?: "<unknown>",
12271226
array[i]);
12281227
}
12291228
else {

0 commit comments

Comments
 (0)