OS: Fix used resource debug prints

These methods were broken by 22419082d9
5 years ago and nobody complained, so maybe they're not so useful...
But at least this should restore them to a working state.
This commit is contained in:
Rémi Verschelde 2021-02-28 12:10:47 +01:00
parent 18fb2afcac
commit 8c3a6b10a9
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 35 additions and 5 deletions

View file

@ -178,7 +178,7 @@ static void _OS_printres(Object *p_obj) {
return;
}
String str = itos(res->get_instance_id()) + String(res->get_class()) + ":" + String(res->get_name()) + " - " + res->get_path();
String str = vformat("%s - %s - %s", res->to_string(), res->get_name(), res->get_path());
if (_OSPRF) {
_OSPRF->store_line(str);
} else {