Skip to content

Commit

Permalink
sgen.c: Change loglevel of a couple error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc0 committed Dec 25, 2018
1 parent f677f00 commit 8b53c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sgen.c
Expand Up @@ -223,7 +223,7 @@ struct codec * sgen_codec_init(const char *path, const char *type, const char *e
if (strcmp(gen_type, "delta") == 0) g->type = SGEN_TYPE_DELTA;
else if (strcmp(gen_type, "sine") == 0) g->type = SGEN_TYPE_SINE;
else {
LOG(LL_VERBOSE, "%s: %s: error: illegal type: %s\n", dsp_globals.prog_name, type, gen_type);
LOG(LL_ERROR, "%s: %s: error: illegal type: %s\n", dsp_globals.prog_name, type, gen_type);
goto fail;
}
sgen_init_generator(g, c);
Expand All @@ -237,7 +237,7 @@ struct codec * sgen_codec_init(const char *path, const char *type, const char *e
/* LOG(LL_VERBOSE, "%s: %s: %s: arg: key=%s value=%s\n", dsp_globals.prog_name, type, gen_type, arg, value); */
parse_ret = sgen_parse_param(g, c, type, arg, value);
if (parse_ret == 1) {
LOG(LL_VERBOSE, "%s: %s: %s: error: illegal parameter: %s\n", dsp_globals.prog_name, type, gen_type, arg);
LOG(LL_ERROR, "%s: %s: %s: error: illegal parameter: %s\n", dsp_globals.prog_name, type, gen_type, arg);
goto fail;
}
else if (parse_ret == -1)
Expand Down

0 comments on commit 8b53c85

Please sign in to comment.