Prusa MINI Firmware overview
pcTaskGetName

task. h

char *pcTaskGetName( TaskHandle_t xTaskToQuery );
Returns
The text (human readable) name of the task referenced by the handle xTaskToQuery. A task can query its own name by either passing in its own handle, or by setting xTaskToQuery to NULL.