diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-31 15:11:36 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-31 17:43:54 +0100 |
commit | 3a7574de825a8e49d3f0cafe475d51a2ab151963 (patch) | |
tree | 14d640ae14ee0a8c0472b8d17f24b5c53bad3199 /Userland | |
parent | ff914fabeb362ff0a333e8561e86f41005e9a175 (diff) | |
download | serenity-3a7574de825a8e49d3f0cafe475d51a2ab151963.zip |
LibX86: Replace fprintf(stderr) with warnln()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibX86/Instruction.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index b65b573e26..6ef4768b92 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -864,14 +864,14 @@ ALWAYS_INLINE Instruction::Instruction(InstructionStreamType& stream, bool o32, if (!m_descriptor->mnemonic) { if (has_sub_op()) { if (has_slash) - fprintf(stderr, "Instruction %02X %02X /%u not understood\n", m_op, m_sub_op, slash()); + warnln("Instruction {:02X} {:02X} /{} not understood", m_op, m_sub_op, slash()); else - fprintf(stderr, "Instruction %02X %02X not understood\n", m_op, m_sub_op); + warnln("Instruction {:02X} {:02X} not understood", m_op, m_sub_op); } else { if (has_slash) - fprintf(stderr, "Instruction %02X /%u not understood\n", m_op, slash()); + warnln("Instruction {:02X} /{} not understood", m_op, slash()); else - fprintf(stderr, "Instruction %02X not understood\n", m_op); + warnln("Instruction {:02X} not understood", m_op); } m_descriptor = nullptr; return; @@ -915,7 +915,7 @@ ALWAYS_INLINE Instruction::Instruction(InstructionStreamType& stream, bool o32, #ifdef DISALLOW_INVALID_LOCK_PREFIX if (m_has_lock_prefix && !m_descriptor->lock_prefix_allowed) { - fprintf(stderr, "Instruction not allowed with LOCK prefix, this will raise #UD\n"); + warnln("Instruction not allowed with LOCK prefix, this will raise #UD"); m_descriptor = nullptr; } #endif |