mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
fix some printf format specifiers (#76)
use the definition in cinttypes for portability
This commit is contained in:
parent
5cba1a1185
commit
8459cd928c
6 changed files with 23 additions and 15 deletions
|
@ -5,6 +5,8 @@
|
|||
#include "Cafe/OS/RPL/rpl.h"
|
||||
#include "Cafe/OS/RPL/rpl_symbol_storage.h"
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
enum
|
||||
{
|
||||
// options
|
||||
|
@ -233,11 +235,11 @@ void DebugPPCThreadsWindow::RefreshThreadList()
|
|||
m_thread_list->SetItem(i, 7, tempStr);
|
||||
// last awake in cycles
|
||||
uint64 lastWakeUpTime = cafeThread->wakeUpTime;
|
||||
sprintf(tempStr, "%I64u", lastWakeUpTime);
|
||||
sprintf(tempStr, "%" PRIu64, lastWakeUpTime);
|
||||
m_thread_list->SetItem(i, 8, tempStr);
|
||||
// awake time in cycles
|
||||
uint64 awakeTime = cafeThread->totalCycles;
|
||||
sprintf(tempStr, "%I64u", awakeTime);
|
||||
sprintf(tempStr, "%" PRIu64, awakeTime);
|
||||
m_thread_list->SetItem(i, 9, tempStr);
|
||||
// thread name
|
||||
const char* threadName = "NULL";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue