From 6e5dd2b247b76f7135bb2a60146e0250be7dbb49 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 23 Sep 2016 00:06:02 +0200 Subject: [PATCH] src/utils/log.c: add header, remove unused code --- src/utils/log.c | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) 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); } -- 2.11.0