diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-10-24 16:05:38 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-10-24 18:39:00 +0300 |
commit | 17f8aa67a60af1270ebe74ef55373b632214aee9 (patch) | |
tree | 5a6bd66f9865f45af3bbb1fcb310e36b7a96efdf /android/log.c | |
parent | 54345db3b1db4861f06ef42e7fa3246f13a1e9ab (diff) | |
download | bluez-17f8aa67a60af1270ebe74ef55373b632214aee9.tar.gz |
android: Fix debug logs when running on Android
Current Android log backed dones't enable debug logs. Instead of coping
code from src/log.c, just use it on Android as well.
No functionality is lost as currently Android log backed only prints
to standard output.
Diffstat (limited to 'android/log.c')
-rw-r--r-- | android/log.c | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/android/log.c b/android/log.c deleted file mode 100644 index 98afaa97b..000000000 --- a/android/log.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * - * BlueZ - Bluetooth protocol stack for Linux - * - * Copyright (C) 2013 Intel Corporation. All rights reserved. - * - * - * 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 program 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 this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <fcntl.h> -#include <stdio.h> -#include <stdarg.h> -#include <unistd.h> -#include <sys/uio.h> - -#include <glib.h> - -void info(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - - vfprintf(stdout, format, ap); - fprintf(stdout, "\n"); - - va_end(ap); -} - -void warn(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - - vfprintf(stderr, format, ap); - fprintf(stderr, "\n"); - - va_end(ap); -} - -void error(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - - vfprintf(stderr, format, ap); - fprintf(stderr, "\n"); - - va_end(ap); -} - -void btd_debug(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - - vfprintf(stdout, format, ap); - fprintf(stdout, "\n"); - - va_end(ap); -} - -void __btd_log_init(const char *debug, int detach) -{ -} - -void __btd_log_cleanup(void) -{ -} |