summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-10-29 23:16:42 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-29 23:16:42 +0000
commitce5335702b8fe9b0dcfc5ff1e342e9e60d74371a (patch)
tree1f5e87b3f7caa6237d6120b3a7ef349360e76b9c /include
parent12f1089e7a4961a96201765fea41411df932fecb (diff)
parent91a7685e653234ae99547ca9cfeac3ea7de17307 (diff)
downloadcore-ce5335702b8fe9b0dcfc5ff1e342e9e60d74371a.tar.gz
core-ce5335702b8fe9b0dcfc5ff1e342e9e60d74371a.tar.bz2
core-ce5335702b8fe9b0dcfc5ff1e342e9e60d74371a.zip
Merge changes Iefbea3b1,Ieb924b6d am: bb51fbc4d4 am: 9d4203aae1
am: 91a7685e65 * commit '91a7685e653234ae99547ca9cfeac3ea7de17307': liblog: add android_log_timestamp() private function liblog: logcat: add epoch and monotonic format modifiers
Diffstat (limited to 'include')
-rw-r--r--include/log/logger.h2
-rw-r--r--include/log/logprint.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/log/logger.h b/include/log/logger.h
index f030dab5a..c795253c9 100644
--- a/include/log/logger.h
+++ b/include/log/logger.h
@@ -183,6 +183,8 @@ 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();
+
/*
* log_id_t helpers
*/
diff --git a/include/log/logprint.h b/include/log/logprint.h
index 26b1ee5a1..204b3f224 100644
--- a/include/log/logprint.h
+++ b/include/log/logprint.h
@@ -42,6 +42,8 @@ typedef enum {
FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */
FORMAT_MODIFIER_YEAR, /* Adds year to date */
FORMAT_MODIFIER_ZONE, /* Adds zone to date */
+ FORMAT_MODIFIER_EPOCH, /* Print time as seconds since Jan 1 1970 */
+ FORMAT_MODIFIER_MONOTONIC, /* Print cpu time as seconds since start */
} AndroidLogPrintFormat;
typedef struct AndroidLogFormat_t AndroidLogFormat;