ref: 6e5dd2b247b76f7135bb2a60146e0250be7dbb49
parent: 784de2f5b1a463e0dfe4e72fdb9abf0c108c0ec9
author: Paul Brossier <piem@piem.org>
date: Thu Sep 22 20:06:02 EDT 2016
src/utils/log.c: add header, remove unused code
--- a/src/utils/log.c
+++ b/src/utils/log.c
@@ -1,3 +1,23 @@
+/*
+ Copyright (C) 2016 Paul Brossier <piem@aubio.org>
+
+ 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 <http://www.gnu.org/licenses/>.
+
+*/
+
#include "config.h"
#include "aubio_priv.h"
#include "log.h"
@@ -17,9 +37,6 @@
out = stdout;
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);