summaryrefslogtreecommitdiffstats
path: root/rotate_logs.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-18 22:21:36 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-10-18 22:21:36 +0200
commit30ec0051042344465a67637eb4cd86250164f1fe (patch)
tree263387efad391594209239cb153126d0fdc3f21a /rotate_logs.h
parentMerge "otautil: Move RangeSet implementation into rangeset.cpp." (diff)
parentrotate_logs: Clean up the header includes. (diff)
downloadandroid_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.tar
android_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.tar.gz
android_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.tar.bz2
android_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.tar.lz
android_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.tar.xz
android_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.tar.zst
android_bootable_recovery-30ec0051042344465a67637eb4cd86250164f1fe.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.