summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-12-01 15:57:25 -0800
committerMark Salyzyn <salyzyn@google.com>2015-12-07 18:45:31 +0000
commitba7a9a016bf011fdf45b6736d4c6d6795faba9d3 (patch)
tree628cdad8728c49ec03a7ccf2caec93caea8a0882 /include
parentb566435b02d90663b5a26ba795bfb2f0102e8833 (diff)
downloadcore-ba7a9a016bf011fdf45b6736d4c6d6795faba9d3.tar.gz
core-ba7a9a016bf011fdf45b6736d4c6d6795faba9d3.tar.bz2
core-ba7a9a016bf011fdf45b6736d4c6d6795faba9d3.zip
logd: liblog: logcat: switch to android_log_clockid() (2)
android_log_timestamp returns the property leading letter, it is better to return a clockid_t with android_log_clockid() Bug: 23668800 Change-Id: I38dee773bf3844177826b03a26b03215c79a5359
Diffstat (limited to 'include')
-rw-r--r--include/log/logger.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/log/logger.h b/include/log/logger.h
index c795253c9..ff70529fb 100644
--- a/include/log/logger.h
+++ b/include/log/logger.h
@@ -11,6 +11,10 @@
#define _LIBS_LOG_LOGGER_H
#include <stdint.h>
+#ifdef __linux__
+#include <time.h> /* clockid_t definition */
+#endif
+
#include <log/log.h>
#include <log/log_read.h>
@@ -183,7 +187,9 @@ struct logger_list *android_logger_list_open(log_id_t id,
pid_t pid);
#define android_logger_list_close android_logger_list_free
-char android_log_timestamp();
+#ifdef __linux__
+clockid_t android_log_clockid();
+#endif
/*
* log_id_t helpers