Do not duplicate traces and identify correctly the optional
include in first hit.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
if (err < 0)
return err;
err = uc_mgr_config_load_file(uc_mgr, s, result, opt_bool);
- if (opt_bool && (err == -ENOENT || err == -EACCES)) {
- snd_trace(UCM, "optional file '%s' not found or readable", s);
+ if (opt_bool && (err == -ENOENT || err == -EACCES))
err = 0;
- }
free(s);
return err;
}
if (!optional || (err != -ENOENT && err != -EACCES))
snd_error(UCM, "could not open configuration file %s", file);
else
- snd_trace(UCM, "could not open configuration file %s", file);
+ snd_trace(UCM, "optional configuration file %s not found or readable", file);
return err;
}
err = snd_input_stdio_attach(&in, fp, 1);