summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-SetGet.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-19 17:18:56 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-20 11:39:29 +0000
commit2209293bec9ce0cff772dedbec326704f5a2ca42 (patch)
tree6e63eabc91704fe6ab320106fd5da8f74a65282f /alsa-binding/Alsa-SetGet.c
parent22043a68d0fe0652dd7e0b1041f6f448e867390b (diff)
Use app-fwk macro to get verbosity level
Use application framework macro to get verbosity level instead of a legacy function. Change-Id: I925b2ccea3c7d58bc50281eb8d39f82dac1f49b4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-SetGet.c')
-rw-r--r--alsa-binding/Alsa-SetGet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c
index 00e7bec..6983817 100644
--- a/alsa-binding/Alsa-SetGet.c
+++ b/alsa-binding/Alsa-SetGet.c
@@ -409,7 +409,7 @@ STATIC json_object* alsaCardProbe(const char *rqt, InfoGetT infoType) {
name = snd_ctl_card_info_get_name(cardinfo);
json_object_object_add(ctlDev, "name", json_object_new_string(name));
- if (AFB_GET_VERBOSITY > 1) {
+ if (afb_get_verbosity() >= AFB_VERBOSITY_LEVEL_NOTICE) {
driver = snd_ctl_card_info_get_driver(cardinfo);
json_object_object_add(ctlDev, "driver", json_object_new_string(driver));
info = strdup(snd_ctl_card_info_get_longname(cardinfo));