system/critmon: fix warning

critmon.c:269:3: warning: 'runtime' may be used uninitialized in this function [-Wmaybe-uninitialized]
  269 |   printf("%11s %11s %11s %-16s %-5s %s\n",
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  270 |          maxpreemp, maxcrit, maxrun, runtime, entryp->d_name, name);

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-04-24 21:50:21 +08:00 committed by Xiang Xiao
parent fa26bab6b2
commit 08bfc4e9c7

View File

@ -248,12 +248,14 @@ static int critmon_process_directory(FAR struct dirent *entryp)
else
{
maxrun = "None";
runtime = "None";
}
}
else
{
maxcrit = "None";
maxrun = "None";
runtime = "None";
}
/* Finally, output the stack info that we gleaned from the procfs */