From c9c96dff6b3f69669c295dd8790992a985bd4996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=8A=E5=A4=B4=E5=86=9B=E5=B8=88?= Date: Wed, 8 Jan 2025 20:15:27 +0800 Subject: [PATCH] panic without history.log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 羊头军师 --- drivers/staging/blackbox/blackbox_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/blackbox/blackbox_core.c b/drivers/staging/blackbox/blackbox_core.c index c5fa94dc6f31..f7d3494889b8 100644 --- a/drivers/staging/blackbox/blackbox_core.c +++ b/drivers/staging/blackbox/blackbox_core.c @@ -223,7 +223,6 @@ static void save_history_log(const char *log_root_dir, struct error_info *info, memset(history_log_path, 0, sizeof(history_log_path)); scnprintf(history_log_path, sizeof(history_log_path) - 1, "%s/%s", log_root_dir, HISTORY_LOG_NAME); - full_write_file(history_log_path, buf, strlen(buf), 1); ksys_sync(); kfree(buf); } -- Gitee