src/utils/log.c: add header, remove unused code
authorPaul Brossier <piem@piem.org>
Thu, 22 Sep 2016 22:06:02 +0000 (00:06 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 22 Sep 2016 22:06:02 +0000 (00:06 +0200)
src/utils/log.c

index 0f6ef81..634178d 100644 (file)
@@ -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"
@@ -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);
 }