X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=inline;f=src%2Fcommon%2Flog.c;h=29b9286a5ac63c5fc20619eea551294fc376a2d7;hb=121bcb38f29409f10de63a68d86620c4beb75c97;hp=b3785759c7cd05eee7b64bdbeb5767e00bc42417;hpb=1eb382f72510d50b3636fb88c4bfaf17183672b6;p=emu8051.git diff --git a/src/common/log.c b/src/common/log.c index b378575..29b9286 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -3,15 +3,11 @@ * * Copyright (C) 2011 Hugo Villeneuve * - * This program 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 2 of the License, or - * (at your option) any later version. + * This file is released under the GPLv2 */ #include "config.h" -#include #include #include #include @@ -19,6 +15,7 @@ #include "common.h" #include "options.h" +#include "log.h" #define PREFIX_PACKAGE_NAME 1 #define ADD_LINEFEED 1 @@ -53,7 +50,7 @@ log_debug(const char *format, ...) log_prefix_package_name(stream, "debug"); va_start(ap, format); - vfprintf(stream, format, ap); + (void) vfprintf(stream, format, ap); va_end(ap); log_suffix_newline(stream); @@ -71,7 +68,7 @@ log_info(const char *format, ...) log_prefix_package_name(stream, "info"); va_start(ap, format); - vfprintf(stream, format, ap); + (void) vfprintf(stream, format, ap); va_end(ap); log_suffix_newline(stream); @@ -89,7 +86,7 @@ log_warn(const char *format, ...) log_prefix_package_name(stream, "warn"); va_start(ap, format); - vfprintf(stream, format, ap); + (void) vfprintf(stream, format, ap); va_end(ap); log_suffix_newline(stream); @@ -105,7 +102,7 @@ log_err(const char *format, ...) log_prefix_package_name(stream, "error"); va_start(ap, format); - vfprintf(stream, format, ap); + (void) vfprintf(stream, format, ap); va_end(ap); log_suffix_newline(stream); @@ -121,7 +118,7 @@ log_fail(const char *format, ...) log_prefix_package_name(stream, "error"); va_start(ap, format); - vfprintf(stream, format, ap); + (void) vfprintf(stream, format, ap); va_end(ap); log_suffix_newline(stream);