From: Caisking <3449750381@qq.com> Date: Wed, 23 Oct 2024 06:53:34 +0000 (+0800) Subject: 系统:修改死机文件的生成路径 X-Git-Tag: fd230_release_V1.3.102~198 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=01136920f4a31550a2fd6c5461b53e8c1d4bc493;p=mirrors%2FFD230.git 系统:修改死机文件的生成路径 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index fae1fe150..87d4b2c8a 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -360,7 +360,7 @@ namespace OHOS } // 获取死机列表 - static const char *SHUTDOWN_PATH = "/user/tar"; + static const char *SHUTDOWN_PATH = "/user/system/tar"; std::string DebugOutputViewEventListener::get_shutdown_info() { std::ostringstream oss; diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index b9a00e22e..5cdabe710 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -2051,7 +2051,7 @@ int uapi_tar_file(const char *src_path,const char *tar_path,char *tarfilename) } else { - uapi_check_tar_file_count("/user/tar"); //有新的tar文件生成则检查tar文件数量 + uapi_check_tar_file_count("/user/system/tar"); //有新的tar文件生成则检查tar文件数量 } free(buffer); return ret; @@ -2066,7 +2066,7 @@ int uapi_save_exc(void) char buildversion[64]={0}; uapi_get_buildversion((uint8_t*)&buildversion[0],sizeof(buildversion)); sprintf(str, tarfilePath,buildversion,timestamp); - return uapi_tar_file("/user/exc","/user/tar",str); + return uapi_tar_file("/user/exc","/user/system/tar",str); } void uapi_restore_factory_setting(void)