mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
Everywhere: Debug macros instead of constexpr.
This was done with the following script: find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/dbgln<debug_([a-z_]+)>/dbgln<\U\1_DEBUG>/' {} \; find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/if constexpr \(debug_([a-z0-9_]+)/if constexpr \(\U\1_DEBUG/' {} \;
This commit is contained in:
parent
bb483f7ef4
commit
8465683dcf
98 changed files with 414 additions and 972 deletions
|
@ -99,7 +99,7 @@ void PS2MouseDevice::irq_handle_byte_read(u8 byte)
|
|||
|
||||
auto commit_packet = [&] {
|
||||
m_data_state = 0;
|
||||
dbgln<debug_ps2mouse>("PS2Mouse: {}, {} {} {}",
|
||||
dbgln<PS2MOUSE_DEBUG>("PS2Mouse: {}, {} {} {}",
|
||||
m_data.bytes[1],
|
||||
m_data.bytes[2],
|
||||
(m_data.bytes[0] & 1) ? "Left" : "",
|
||||
|
@ -283,7 +283,7 @@ KResultOr<size_t> PS2MouseDevice::read(FileDescription&, size_t, UserOrKernelBuf
|
|||
auto packet = m_queue.dequeue();
|
||||
lock.unlock();
|
||||
|
||||
if constexpr (debug_ps2mouse) {
|
||||
if constexpr (PS2MOUSE_DEBUG) {
|
||||
dbgln("PS2 Mouse Read: Buttons {:x}", packet.buttons);
|
||||
dbgln("PS2 Mouse: X {}, Y {}, Z {}, Relative {}", packet.x, packet.y, packet.z, packet.buttons);
|
||||
dbgln("PS2 Mouse Read: Filter packets");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue