mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:47:34 +00:00
Everywhere: Hook up remaining debug macros to Debug.h.
This commit is contained in:
parent
da69de1f1b
commit
eea72b9b5c
63 changed files with 458 additions and 287 deletions
|
@ -25,6 +25,7 @@
|
|||
*/
|
||||
|
||||
#include "HexEditor.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Clipboard.h>
|
||||
|
@ -222,7 +223,7 @@ void HexEditor::mousedown_event(GUI::MouseEvent& event)
|
|||
if (offset < 0 || offset >= static_cast<int>(m_buffer.size()))
|
||||
return;
|
||||
|
||||
#ifdef HEX_DEBUG
|
||||
#if HEX_DEBUG
|
||||
outln("HexEditor::mousedown_event(hex): offset={}", offset);
|
||||
#endif
|
||||
|
||||
|
@ -244,7 +245,7 @@ void HexEditor::mousedown_event(GUI::MouseEvent& event)
|
|||
if (offset < 0 || offset >= static_cast<int>(m_buffer.size()))
|
||||
return;
|
||||
|
||||
#ifdef HEX_DEBUG
|
||||
#if HEX_DEBUG
|
||||
outln("HexEditor::mousedown_event(text): offset={}", offset);
|
||||
#endif
|
||||
|
||||
|
@ -344,7 +345,7 @@ void HexEditor::scroll_position_into_view(int position)
|
|||
|
||||
void HexEditor::keydown_event(GUI::KeyEvent& event)
|
||||
{
|
||||
#ifdef HEX_DEBUG
|
||||
#if HEX_DEBUG
|
||||
outln("HexEditor::keydown_event key={}", static_cast<u8>(event.key()));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "IRCQuery.h"
|
||||
#include "IRCWindow.h"
|
||||
#include "IRCWindowListModel.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/QuickSort.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/DateTime.h>
|
||||
|
@ -39,10 +40,6 @@
|
|||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
|
||||
#ifndef IRC_DEBUG
|
||||
# define IRC_DEBUG
|
||||
#endif
|
||||
|
||||
enum IRCNumeric {
|
||||
RPL_WELCOME = 1,
|
||||
RPL_WHOISUSER = 311,
|
||||
|
@ -255,7 +252,7 @@ void IRCClient::send_whois(const String& nick)
|
|||
|
||||
void IRCClient::handle(const Message& msg)
|
||||
{
|
||||
#ifdef IRC_DEBUG
|
||||
#if IRC_DEBUG
|
||||
outln("IRCClient::execute: prefix='{}', command='{}', arguments={}",
|
||||
msg.prefix,
|
||||
msg.command,
|
||||
|
@ -486,7 +483,7 @@ void IRCClient::handle_privmsg_or_notice(const Message& msg, PrivmsgOrNotice typ
|
|||
|
||||
bool is_ctcp = has_ctcp_payload(msg.arguments[1]);
|
||||
|
||||
#ifdef IRC_DEBUG
|
||||
#if IRC_DEBUG
|
||||
outln("handle_privmsg_or_notice: type='{}'{}, sender_nick='{}', target='{}'",
|
||||
type == PrivmsgOrNotice::Privmsg ? "privmsg" : "notice",
|
||||
is_ctcp ? " (ctcp)" : "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue