From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 30 Dec 2022 19:31:01 +0000 (+0000) Subject: make the error message one single identifier by linking the error number to the messa... X-Git-Tag: 4.2.1d0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae5910e2e7c34f8b3bf2c2703b4cb03a7719211d;p=thirdparty%2Fshairport-sync.git make the error message one single identifier by linking the error number to the message with an underscore. --- diff --git a/audio_alsa.c b/audio_alsa.c index 3c8cebd0..608696ce 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -449,11 +449,11 @@ static int actual_open_alsa_device(int do_auto_setup) { config.unfixable_error_reported = 1; char messageString[1024]; messageString[0] = '\0'; - snprintf(messageString, sizeof(messageString), "output_device_error %d", -ret); + snprintf(messageString, sizeof(messageString), "output_device_error_%d", -ret); if (config.cmd_unfixable) { command_execute(config.cmd_unfixable, messageString, 1); } else { - die("an unrecoverable error, \"output_device_error %d\", has been " + die("an unrecoverable error, \"output_device_error_%d\", has been " "detected.", -ret); } } @@ -1806,9 +1806,9 @@ static int do_play(void *buf, int samples) { if (config.unfixable_error_reported == 0) { config.unfixable_error_reported = 1; if (config.cmd_unfixable) { - command_execute(config.cmd_unfixable, "output_device_error 19", 1); + command_execute(config.cmd_unfixable, "output_device_error_19", 1); } else { - die("an unrecoverable error, \"output_device_error 19\", has been " + die("an unrecoverable error, \"output_device_error_19\", has been " "detected."); } }