summaryrefslogtreecommitdiffstats
path: root/rotate_logs.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-18 20:06:36 +0200
committerTao Bao <tbao@google.com>2017-10-18 20:08:37 +0200
commit245c5225880f763a31e9ac0fd42dee2cc42cfc9d (patch)
tree263387efad391594209239cb153126d0fdc3f21a /rotate_logs.h
parentMerge "otautil: Move RangeSet implementation into rangeset.cpp." (diff)
downloadandroid_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.tar
android_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.tar.gz
android_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.tar.bz2
android_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.tar.lz
android_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.tar.xz
android_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.tar.zst
android_bootable_recovery-245c5225880f763a31e9ac0fd42dee2cc42cfc9d.zip
Diffstat (limited to '')
-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.