Skip to content

Commit

Permalink
Use strsignal instead of deprecated array
Browse files Browse the repository at this point in the history
  • Loading branch information
mill1000 committed Dec 7, 2023
1 parent efe3cac commit b292500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static void raspdif_fill_buffers(uint8_t buffer_index, spdif_block_t* block, ras
*/
static void signal_handler(int32_t signal)
{
LOGW(TAG, "Received signal %s (%d).", sys_siglist[signal], signal);
LOGW(TAG, "Received signal %s (%d).", strsignal(signal), signal);

raspdif_shutdown();

Expand Down

0 comments on commit b292500

Please sign in to comment.