From 1990d6d7b71556589edc65bfac0e0814ead5c237 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 18 Sep 2019 17:56:28 +0200 Subject: Correct errors in printed variables Before, the modified print was using '*currentDevice' variable which is an ALSA device number. As the print point was to show on which card the error happened, variable has been changed to print the ALSA card number. BUG-AGL: SPEC-2832 Change-Id: I7a8b85fba4f8aa9c37b4e5ee5d293b9a6b09a0e9 Signed-off-by: Jonathan Aillet --- alsa-binding/Alsa-SetGet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c index 8c189de..494c694 100644 --- a/alsa-binding/Alsa-SetGet.c +++ b/alsa-binding/Alsa-SetGet.c @@ -467,13 +467,13 @@ STATIC int jumpToCardNextDevice(unsigned int card, int *currentDevice) err = snd_ctl_open(&cardHandle, cardString, 0); if(err < 0) { - AFB_ERROR("Error %i happened when tried to open ALSA card %i", err, *currentDevice); + AFB_ERROR("Error %i happened when tried to open ALSA card %i", err, card); return -3; } err = snd_ctl_pcm_next_device(cardHandle, currentDevice); if(err < 0) { - AFB_ERROR("Error %i happened when tried to get ALSA card %i next device number", err, *currentDevice); + AFB_ERROR("Error %i happened when tried to get ALSA card %i next device number", err, card); snd_ctl_close(cardHandle); return -4; } -- cgit 1.2.3-korg