From 6714159660f9452242d449e6d89015d281fa9acf Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 13 Oct 2018 18:18:44 +0100 Subject: [PATCH] FIFOAnalyzer: don't use misleading format strings --- Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index 8fcb855ddc..0cded7593b 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -281,7 +281,7 @@ void FIFOAnalyzer::UpdateDetails() { u32 cmd2 = Common::swap32(objectdata); objectdata += 4; - new_label = QStringLiteral("BP %02 %06") + new_label = QStringLiteral("BP %1 %2") .arg(cmd2 >> 24, 2, 16, QLatin1Char('0')) .arg(cmd2 & 0xFFFFFF, 6, 16, QLatin1Char('0')); } @@ -474,7 +474,7 @@ void FIFOAnalyzer::UpdateDescription() text = tr("BP register "); text += name.empty() ? - QStringLiteral("UNKNOWN_%02X").arg(*(cmddata + 1), 2, 16, QLatin1Char('0')) : + QStringLiteral("UNKNOWN_%1").arg(*(cmddata + 1), 2, 16, QLatin1Char('0')) : QString::fromStdString(name); text += QStringLiteral("\n");