summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-08-17 20:29:02 -0400
committerGravatar bunnei2014-08-17 20:29:02 -0400
commit0e7d10c5ad75e3d69d9ef8711b2d5287b2aec2ad (patch)
treeb4f752f451127c31f0eef6d687153430dda3df67 /src
parentMerge pull request #47 from archshift/stdstring (diff)
parentCore: Fix a formatting error in svc.cpp (diff)
downloadyuzu-0e7d10c5ad75e3d69d9ef8711b2d5287b2aec2ad.tar.gz
yuzu-0e7d10c5ad75e3d69d9ef8711b2d5287b2aec2ad.tar.xz
yuzu-0e7d10c5ad75e3d69d9ef8711b2d5287b2aec2ad.zip
Merge pull request #54 from lioncash/fmt
Core: Fix a formatting error in svc.cpp
Diffstat (limited to '')
-rw-r--r--src/core/hle/svc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 19f717bd2..8720bed31 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -5,6 +5,7 @@
5#include <map> 5#include <map>
6#include <string> 6#include <string>
7 7
8#include "common/string_util.h"
8#include "common/symbols.h" 9#include "common/symbols.h"
9 10
10#include "core/mem_map.h" 11#include "core/mem_map.h"
@@ -220,9 +221,7 @@ Result CreateThread(u32 priority, u32 entry_point, u32 arg, u32 stack_top, u32 p
220 TSymbol symbol = Symbols::GetSymbol(entry_point); 221 TSymbol symbol = Symbols::GetSymbol(entry_point);
221 name = symbol.name; 222 name = symbol.name;
222 } else { 223 } else {
223 char buff[100]; 224 name = StringFromFormat("unknown-%08x", entry_point);
224 sprintf(buff, "%s", "unknown-%08X", entry_point);
225 name = buff;
226 } 225 }
227 226
228 Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, arg, processor_id, 227 Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, arg, processor_id,