liblog: deprecate export of LOGGER_LOG_* defines
(cherry picked from commit 73459a5c87dc9e7c2aeee00597b9d3cc8d9a190e)
Change-Id: I263af8e889f8f2ad91b91757caf90a4d17823dab
diff --git a/include/log/logger.h b/include/log/logger.h
index a05b174..5d21794 100644
--- a/include/log/logger.h
+++ b/include/log/logger.h
@@ -1,6 +1,6 @@
/*
**
-** Copyright 2007, The Android Open Source Project
+** Copyright 2007-2014, The Android Open Source Project
**
** This file is dual licensed. It may be redistributed and/or modified
** under the terms of the Apache 2.0 License OR version 2 of the GNU
@@ -48,11 +48,6 @@
char msg[0]; /* the entry's payload */
};
-#define LOGGER_LOG_MAIN "log/main"
-#define LOGGER_LOG_RADIO "log/radio"
-#define LOGGER_LOG_EVENTS "log/events"
-#define LOGGER_LOG_SYSTEM "log/system"
-
/*
* The maximum size of the log entry payload that can be
* written to the kernel logger driver. An attempt to write
diff --git a/liblog/logd_write.c b/liblog/logd_write.c
index ac00f51..f3054af 100644
--- a/liblog/logd_write.c
+++ b/liblog/logd_write.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2007 The Android Open Source Project
+ * Copyright (C) 2007-2014 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.
@@ -31,6 +31,11 @@
#include <log/logd.h>
#include <log/log.h>
+#define LOGGER_LOG_MAIN "log/main"
+#define LOGGER_LOG_RADIO "log/radio"
+#define LOGGER_LOG_EVENTS "log/events"
+#define LOGGER_LOG_SYSTEM "log/system"
+
#define LOG_BUF_SIZE 1024
#if FAKE_LOG_DEVICE