diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-02-25 16:45:13 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-02-25 16:45:13 +0100 |
commit | f0658f37dc1c416e8f8415971b44afd6977ceb5c (patch) | |
tree | dd556415ec51d4221ea59fe67d3eda91385b7804 | |
parent | 412cb29b587f520834979b017412d086254e11c2 (diff) |
alsactl: update debug prints in state.c
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | alsactl/state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alsactl/state.c b/alsactl/state.c index a59d084..e70c6f9 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -1415,6 +1415,7 @@ static int set_controls(int card, snd_config_t *top, int doit) goto _close; } id = snd_ctl_card_info_get_id(info); + dbg("card-info-id: '%s'", id); err = snd_config_searchv(top, &control, "state", id, "control", 0); if (err < 0) { if (force_restore) { @@ -1440,19 +1441,18 @@ static int set_controls(int card, snd_config_t *top, int doit) goto _close; } + dbg("maxnumid=%i", maxnumid); /* check if we have additional controls in driver */ /* in this case we should go through init procedure */ if (!doit && maxnumid >= 0) { - snd_ctl_elem_id_t *id; snd_ctl_elem_info_t *info; - snd_ctl_elem_id_alloca(&id); snd_ctl_elem_info_alloca(&info); snd_ctl_elem_info_set_numid(info, maxnumid+1); if (snd_ctl_elem_info(handle, info) == 0) { /* not very informative */ /* but value is used for check only */ err = -EAGAIN; - dbg("maxnumid=%i: more controls?", maxnumid); + dbg("more controls than maxnumid?"); goto _close; } } |