Skip to content
Snippets Groups Projects
Verified Commit 2744c8fd authored by tracer-ics2018's avatar tracer-ics2018 Committed by Recolic Keghart
Browse files

> Manual commit: Better info r

U201614531
recolic
Linux RECOLICPC 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64 GNU/Linux
 13:23:16 up 2 days, 20:41,  1 user,  load average: 1.50, 1.42, 1.21
ae29316cbf5d91c7bd90bd912203e525524d324f
parent 75f912dc
No related branches found
No related tags found
No related merge requests found
......@@ -131,9 +131,10 @@ using namespace rlib;
using namespace rlib::literals;
#include <sstream>
#include <iomanip>
auto dumpReg(uint32_t val) {
return string("[32b={}{}, L16b={}{}]").format(std::hex, val, (uint16_t)val, std::dec);
return string("{}{}[32b=0x{}{}, {}L16b=0x{}{}]").format(std::setfill('0'), std::setw(8), std::hex, val, std::setw(4), (uint16_t)val, std::dec);
}
static int cmd_info(char *args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment