From 92e40288b03d02dd8e8f1485cf1f8e962e0f2dff Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 15 Aug 2005 10:28:52 +0000 Subject: [PATCH] uses errmsg in parse_args instead of debug --- examples/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/utils.c b/examples/utils.c index 46224b08..919ebebb 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -162,7 +162,7 @@ int parse_args (int argc, char **argv) { else if (strcmp(optarg,"kl") == 0) type_onset = aubio_onset_kl; else { - debug("could not get onset type.\n"); + errmsg("unknown onset type.\n"); abort(); } usedoubled = 0; @@ -189,7 +189,7 @@ int parse_args (int argc, char **argv) { else if (strcmp(optarg,"fcomb") == 0) type_pitch = aubio_pitch_fcomb; else { - debug("could not get pitch type.\n"); + errmsg("unknown pitch type.\n"); abort(); } break; -- 2.11.0