diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-09-18 17:56:28 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-10-01 10:40:56 +0200 |
commit | 1990d6d7b71556589edc65bfac0e0814ead5c237 (patch) | |
tree | 23d9d8257520b2fbf0dd5dcf5db4ade85c7ccdd7 | |
parent | fae4d2595504fd7287b5613747bdb67d69f6f8c9 (diff) |
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 <jonathan.aillet@iot.bzh>
-rw-r--r-- | alsa-binding/Alsa-SetGet.c | 4 |
1 files 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; } |