Diff between 402e81b418f22019ab62b12ef6618af6ca16a904 and 172b03b6440bb0a70b9d5db2b1abd2cf5b836bbf

Changed Files

File Additions Deletions Status
Makefile.android +2 -1 modified
android/cutils/log.h +27 -0 added

Full Patch

diff --git a/Makefile.android b/Makefile.android
index 895b0fa..1b47fd2 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 0000000..d87da72
--- /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