From: Paul Brossier Date: Thu, 22 Sep 2016 22:06:02 +0000 (+0200) Subject: src/utils/log.c: add header, remove unused code X-Git-Tag: 0.4.4~201 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6e5dd2b247b76f7135bb2a60146e0250be7dbb49;p=aubio.git src/utils/log.c: add header, remove unused code --- diff --git a/src/utils/log.c b/src/utils/log.c index 0f6ef81f..634178d2 100644 --- a/src/utils/log.c +++ b/src/utils/log.c @@ -1,3 +1,23 @@ +/* + Copyright (C) 2016 Paul Brossier + + This file is part of aubio. + + aubio is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + aubio is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with aubio. If not, see . + +*/ + #include "config.h" #include "aubio_priv.h" #include "log.h" @@ -18,9 +38,6 @@ aubio_default_log(sint_t level, const char_t *message, void * data UNUSED) if (level == AUBIO_LOG_DBG || level == AUBIO_LOG_ERR) { out = stderr; } - if (data != NULL) { - fprintf(out, "%s", (char_t *)data); - } fprintf(out, "%s", message); //fflush(out); }