mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 16:42:39 -06:00
Core: Fix a formatting error in svc.cpp
entry_point would not be added to the string. Also used StringFromFormat so that the buffer is unnecessary.
This commit is contained in:
parent
d1c2b76ad1
commit
986dd27392
1 changed files with 2 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "common/string_util.h"
|
||||||
#include "common/symbols.h"
|
#include "common/symbols.h"
|
||||||
|
|
||||||
#include "core/mem_map.h"
|
#include "core/mem_map.h"
|
||||||
|
@ -220,9 +221,7 @@ Result CreateThread(u32 priority, u32 entry_point, u32 arg, u32 stack_top, u32 p
|
||||||
TSymbol symbol = Symbols::GetSymbol(entry_point);
|
TSymbol symbol = Symbols::GetSymbol(entry_point);
|
||||||
name = symbol.name;
|
name = symbol.name;
|
||||||
} else {
|
} else {
|
||||||
char buff[100];
|
name = StringFromFormat("unknown-%08x", entry_point);
|
||||||
sprintf(buff, "%s", "unknown-%08X", entry_point);
|
|
||||||
name = buff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, arg, processor_id,
|
Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, arg, processor_id,
|
||||||
|
|
Loading…
Reference in a new issue