Skip to content

Commit cb24b74

Browse files
gneworldxiaoxiang781216
authored andcommittedOct 17, 2024
coredump app: type of info->time has changed into timespec
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
1 parent 6588ce4 commit cb24b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎system/coredump/coredump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static void coredump_restore(FAR char *savepath, size_t maxfile)
205205
ret = snprintf(dumppath, sizeof(dumppath),
206206
"%s/core-%s", savepath,
207207
info->name.version);
208-
dtime = localtime(&info->time);
208+
dtime = localtime(&info->time.tv_sec);
209209
if (dtime)
210210
{
211211
ret += snprintf(dumppath + ret, sizeof(dumppath) - ret,

0 commit comments

Comments
 (0)
Please sign in to comment.