kernel: sulog: Simplify code using vfs_truncate

This commit is contained in:
ShirkNeko
2025-10-23 22:16:06 +08:00
parent 4b86989bf9
commit 6a1e1d788b
4 changed files with 4 additions and 74 deletions

View File

@@ -6,7 +6,6 @@
extern struct timezone sys_tz;
#define SULOG_PATH "/data/adb/ksu/log/sulog.log"
#define SULOG_OLD_PATH "/data/adb/ksu/log/sulog.log.old"
#define SULOG_MAX_SIZE (128 * 1024 * 1024) // 128MB
#define SULOG_ENTRY_MAX_LEN 512
#define SULOG_COMM_LEN 256