Skip to content

Commit 833b0f0

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Log signal code and address for unexpected signals
If we get an unexpected signal during a signal test log a bit more data to aid diagnostics. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/20230620-arm64-selftest-log-wrong-signal-v1-1-3fe29bdaaf38@kernel.org Signed-off-by: Catalin Marinas <[email protected]>
1 parent cb5aa63 commit 833b0f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/arm64/signal/test_signals_utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ static void default_handler(int signum, siginfo_t *si, void *uc)
249249
fprintf(stderr, "-- Timeout !\n");
250250
} else {
251251
fprintf(stderr,
252-
"-- RX UNEXPECTED SIGNAL: %d\n", signum);
252+
"-- RX UNEXPECTED SIGNAL: %d code %d address %p\n",
253+
signum, si->si_code, si->si_addr);
253254
}
254255
default_result(current, 1);
255256
}

0 commit comments

Comments
 (0)