mirror of
https://github.com/okalachev/flix.git
synced 2026-06-27 21:46:38 +00:00
Minor fix in sys command
String works with printf %s, but actually it's a UB.
This commit is contained in:
+1
-1
@@ -178,7 +178,7 @@ void doCommand(String str, bool echo = false) {
|
|||||||
String core = systemState[i].xCoreID == tskNO_AFFINITY ? "*" : String(systemState[i].xCoreID);
|
String core = systemState[i].xCoreID == tskNO_AFFINITY ? "*" : String(systemState[i].xCoreID);
|
||||||
int cpuPercentage = systemState[i].ulRunTimeCounter / (totalRunTime / 100);
|
int cpuPercentage = systemState[i].ulRunTimeCounter / (totalRunTime / 100);
|
||||||
print("%-5d%-20s%-7d%-6d%-6s%d\n",systemState[i].xTaskNumber, systemState[i].pcTaskName,
|
print("%-5d%-20s%-7d%-6d%-6s%d\n",systemState[i].xTaskNumber, systemState[i].pcTaskName,
|
||||||
systemState[i].usStackHighWaterMark, systemState[i].uxCurrentPriority, core, cpuPercentage);
|
systemState[i].usStackHighWaterMark, systemState[i].uxCurrentPriority, core.c_str(), cpuPercentage);
|
||||||
}
|
}
|
||||||
delete[] systemState;
|
delete[] systemState;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user