diff options
author | bunnei <bunneidev@gmail.com> | 2014-09-16 22:54:41 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-09-16 22:54:41 +0200 |
commit | 1c79a4f10c1eb679b1ab253572a45a7c7df99691 (patch) | |
tree | 93af53b4a6a6e92bf8960b19635c17e8f55f887c | |
parent | Merge pull request #109 from lioncash/cruft (diff) | |
parent | Core: Replace a sprintf in core_timing with StringFromFormat (diff) | |
download | yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.tar yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.tar.gz yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.tar.bz2 yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.tar.lz yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.tar.xz yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.tar.zst yuzu-1c79a4f10c1eb679b1ab253572a45a7c7df99691.zip |
-rw-r--r-- | src/core/core_timing.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 25fccce76..0116cb376 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -7,11 +7,12 @@ #include <atomic> #include <mutex> -#include "common/msg_handler.h" #include "common/chunk_file.h" +#include "common/msg_handler.h" +#include "common/string_util.h" -#include "core/core_timing.h" #include "core/core.h" +#include "core/core_timing.h" int g_clock_rate_arm11 = 268123480; @@ -586,9 +587,10 @@ std::string GetScheduledEventsSummary() const char *name = event_types[ptr->type].name; if (!name) name = "[unknown]"; - char temp[512]; - sprintf(temp, "%s : %i %08x%08x\n", name, (int)ptr->time, (u32)(ptr->userdata >> 32), (u32)(ptr->userdata)); - text += temp; + + text += Common::StringFromFormat("%s : %i %08x%08x\n", name, (int)ptr->time, + (u32)(ptr->userdata >> 32), (u32)(ptr->userdata)); + ptr = ptr->next; } return text; |