summaryrefslogtreecommitdiffstats
path: root/rotate_logs.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-18 22:38:58 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-10-18 22:38:58 +0200
commit04bcf3ee761d8648d0247dd8322e3542c0319464 (patch)
tree401363eed860158b85593ad60c2fd9f9dbf167b6 /rotate_logs.h
parentMerge "otautil: Move RangeSet implementation into rangeset.cpp." am: bab1e8efc8 am: f63dbde3ef (diff)
parentMerge "rotate_logs: Clean up the header includes." am: 30ec005104 (diff)
downloadandroid_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.tar
android_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.tar.gz
android_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.tar.bz2
android_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.tar.lz
android_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.tar.xz
android_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.tar.zst
android_bootable_recovery-04bcf3ee761d8648d0247dd8322e3542c0319464.zip
Diffstat (limited to 'rotate_logs.h')
-rw-r--r--rotate_logs.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/rotate_logs.h b/rotate_logs.h
index 809c213b6..007c33d44 100644
--- a/rotate_logs.h
+++ b/rotate_logs.h
@@ -17,24 +17,18 @@
#ifndef _ROTATE_LOGS_H
#define _ROTATE_LOGS_H
-#include <string>
+#include <stddef.h>
+#include <sys/types.h>
-#include <private/android_logger.h> /* private pmsg functions */
+#include <log/log_id.h>
-constexpr int KEEP_LOG_COUNT = 10;
+static constexpr int KEEP_LOG_COUNT = 10;
-ssize_t logbasename(log_id_t /* logId */,
- char /* prio */,
- const char *filename,
- const char * /* buf */, size_t len,
- void *arg);
+ssize_t logbasename(log_id_t id, char prio, const char* filename, const char* buf, size_t len,
+ void* arg);
-ssize_t logrotate(
- log_id_t logId,
- char prio,
- const char *filename,
- const char *buf, size_t len,
- void *arg);
+ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len,
+ void* arg);
// Rename last_log -> last_log.1 -> last_log.2 -> ... -> last_log.$max.
// Similarly rename last_kmsg -> last_kmsg.1 -> ... -> last_kmsg.$max.