coredump app: type of info->time has changed into timespec

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2024-08-21 15:55:09 +08:00 committed by Xiang Xiao
parent 6588ce4840
commit cb24b748a5

View file

@ -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,