libnfc  1.7.0-rc7
log-internal.c
1 /*-
2  * Free/Libre Near Field Communication (NFC) library
3  *
4  * Libnfc historical contributors:
5  * Copyright (C) 2009 Roel Verdult
6  * Copyright (C) 2009-2013 Romuald Conty
7  * Copyright (C) 2010-2012 Romain Tartière
8  * Copyright (C) 2010-2013 Philippe Teuwen
9  * Copyright (C) 2012-2013 Ludovic Rousseau
10  * Additional contributors of this file:
11  * Copyright (C) 2013 Alex Lian
12  *
13  * This program is free software: you can redistribute it and/or modify it
14  * under the terms of the GNU Lesser General Public License as published by the
15  * Free Software Foundation, either version 3 of the License, or (at your
16  * option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but WITHOUT
19  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21  * more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public License
24  * along with this program. If not, see <http://www.gnu.org/licenses/>
25  */
26 
27 #include "log-internal.h"
28 
29 #include <stdio.h>
30 #include <stdarg.h>
31 
32 void
33 log_vput_internal(const char *format, va_list args)
34 {
35  vfprintf(stderr, format, args);
36 }
37 
38 void
39 log_put_internal(const char *format, ...)
40 {
41  va_list va;
42  va_start(va, format);
43  vfprintf(stderr, format, va);
44  va_end(va);
45 }