From 172b03b6440bb0a70b9d5db2b1abd2cf5b836bbf Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 17 Oct 2013 11:31:41 +0300 Subject: [PATCH] android: Add cutils/log.h --- Makefile.android | 3 ++- android/cutils/log.h | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 android/cutils/log.h diff --git a/Makefile.android b/Makefile.android index 895b0fa87..1b47fd297 100644 --- a/Makefile.android +++ b/Makefile.android @@ -28,4 +28,5 @@ EXTRA_DIST += android/hardware/bluetooth.h \ android/hardware/bt_pan.h \ android/hardware/bt_rc.h \ android/hardware/bt_sock.h \ - android/hardware/hardware.h + android/hardware/hardware.h \ + android/cutils/log.h diff --git a/android/cutils/log.h b/android/cutils/log.h new file mode 100644 index 000000000..d87da72f0 --- /dev/null +++ b/android/cutils/log.h @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2007 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _CUTILS_LOG_H +#define _CUTILS_LOG_H + +#define ALOGV(...) +#define ALOGD(...) +#define ALOGI(...) +#define ALOGW(...) +#define ALOGE(...) +#define LOG_ALWAYS_FATAL(...) do { ALOGE(__VA_ARGS__); exit(1); } while (0) + +#endif // _CUTILS_LOG_H -- 2.47.3