mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-05 04:06:34 -05:00
ucm: remove uc_dbg macro and callers
Those debug prints are not much useful now. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
8c575f32e0
commit
0432be98f9
2 changed files with 2 additions and 20 deletions
|
|
@ -1600,7 +1600,6 @@ static int parse_device(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
|
||||
if (strcmp(id, "EnableSequence") == 0) {
|
||||
uc_dbg("EnableSequence");
|
||||
err = parse_sequence(uc_mgr, &device->enable_list, n);
|
||||
if (err < 0) {
|
||||
snd_error(UCM, "error: failed to parse device enable"
|
||||
|
|
@ -1612,7 +1611,6 @@ static int parse_device(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
|
||||
if (strcmp(id, "DisableSequence") == 0) {
|
||||
uc_dbg("DisableSequence");
|
||||
err = parse_sequence(uc_mgr, &device->disable_list, n);
|
||||
if (err < 0) {
|
||||
snd_error(UCM, "error: failed to parse device disable"
|
||||
|
|
@ -1624,7 +1622,6 @@ static int parse_device(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
|
||||
if (strcmp(id, "TransitionSequence") == 0) {
|
||||
uc_dbg("TransitionSequence");
|
||||
err = parse_transition(uc_mgr, &device->transition_list, n);
|
||||
if (err < 0) {
|
||||
snd_error(UCM, "error: failed to parse transition"
|
||||
|
|
@ -1925,7 +1922,6 @@ static int parse_verb(snd_use_case_mgr_t *uc_mgr,
|
|||
continue;
|
||||
|
||||
if (strcmp(id, "EnableSequence") == 0) {
|
||||
uc_dbg("Parse EnableSequence");
|
||||
err = parse_sequence(uc_mgr, &verb->enable_list, n);
|
||||
if (err < 0) {
|
||||
snd_error(UCM, "error: failed to parse verb enable sequence");
|
||||
|
|
@ -1935,7 +1931,6 @@ static int parse_verb(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
|
||||
if (strcmp(id, "DisableSequence") == 0) {
|
||||
uc_dbg("Parse DisableSequence");
|
||||
err = parse_sequence(uc_mgr, &verb->disable_list, n);
|
||||
if (err < 0) {
|
||||
snd_error(UCM, "error: failed to parse verb disable sequence");
|
||||
|
|
@ -1945,7 +1940,7 @@ static int parse_verb(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
|
||||
if (strcmp(id, "TransitionSequence") == 0) {
|
||||
uc_dbg("Parse TransitionSequence");
|
||||
snd_debug(UCM, "Parse TransitionSequence");
|
||||
err = parse_transition(uc_mgr, &verb->transition_list, n);
|
||||
if (err < 0) {
|
||||
snd_error(UCM, "error: failed to parse transition sequence");
|
||||
|
|
@ -1955,7 +1950,6 @@ static int parse_verb(snd_use_case_mgr_t *uc_mgr,
|
|||
}
|
||||
|
||||
if (strcmp(id, "Value") == 0) {
|
||||
uc_dbg("Parse Value");
|
||||
err = parse_value(uc_mgr, &verb->value_list, n);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
|
@ -2271,7 +2265,7 @@ static int parse_master_section(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg,
|
|||
}
|
||||
|
||||
if (!variant) {
|
||||
uc_dbg("use_case_name %s file '%s'", use_case_name, file);
|
||||
snd_debug(UCM, "use_case_name %s file '%s'", use_case_name, file);
|
||||
|
||||
/* do we have both use case name and file ? */
|
||||
if (!file) {
|
||||
|
|
|
|||
|
|
@ -30,12 +30,6 @@
|
|||
* Jaroslav Kysela <perex@perex.cz>
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#if 0
|
||||
#define UC_MGR_DEBUG
|
||||
#endif
|
||||
|
||||
#include "local.h"
|
||||
#include <pthread.h>
|
||||
#include "use-case.h"
|
||||
|
|
@ -285,12 +279,6 @@ struct snd_use_case_mgr {
|
|||
char *cdev;
|
||||
};
|
||||
|
||||
#ifdef UC_MGR_DEBUG
|
||||
#define uc_dbg SNDERR
|
||||
#else
|
||||
#define uc_dbg(fmt, arg...) do { } while (0)
|
||||
#endif
|
||||
|
||||
void uc_mgr_error(const char *fmt, ...);
|
||||
void uc_mgr_stdout(const char *fmt, ...);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue