This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new cb24b748a coredump app: type of info->time has changed into timespec
cb24b748a is described below
commit cb24b748a58ba885ea1ef339b2062e47e046cb2f
Author: wanggang26 <[email protected]>
AuthorDate: Wed Aug 21 15:55:09 2024 +0800
coredump app: type of info->time has changed into timespec
Signed-off-by: wanggang26 <[email protected]>
---
system/coredump/coredump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/coredump/coredump.c b/system/coredump/coredump.c
index 0e8fa9232..0d4b0fd89 100644
--- a/system/coredump/coredump.c
+++ b/system/coredump/coredump.c
@@ -205,7 +205,7 @@ static void coredump_restore(FAR char *savepath, size_t
maxfile)
ret = snprintf(dumppath, sizeof(dumppath),
"%s/core-%s", savepath,
info->name.version);
- dtime = localtime(&info->time);
+ dtime = localtime(&info->time.tv_sec);
if (dtime)
{
ret += snprintf(dumppath + ret, sizeof(dumppath) - ret,