From 01879d27c22a74a8900f570fa3e737f3d3f65fc1 Mon Sep 17 00:00:00 2001 From: asynts Date: Mon, 11 Jan 2021 21:13:30 +0100 Subject: Everywhere: Replace a bundle of dbg with dbgln. These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect. --- Userland/Libraries/LibRegex/C/Regex.cpp | 2 +- Userland/Libraries/LibRegex/RegexParser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibRegex') diff --git a/Userland/Libraries/LibRegex/C/Regex.cpp b/Userland/Libraries/LibRegex/C/Regex.cpp index ad39b18af5..6c468915f0 100644 --- a/Userland/Libraries/LibRegex/C/Regex.cpp +++ b/Userland/Libraries/LibRegex/C/Regex.cpp @@ -87,7 +87,7 @@ int regcomp(regex_t* reg, const char* pattern, int cflags) preg->re_pat_err = (ReError)parser_result.error; preg->re_pat = pattern; - dbg() << "Have Error: " << (ReError)parser_result.error; + dbgln("Have Error: {}", (int)parser_result.error); return (ReError)parser_result.error; } diff --git a/Userland/Libraries/LibRegex/RegexParser.cpp b/Userland/Libraries/LibRegex/RegexParser.cpp index 33ade43661..ba82b3f9d8 100644 --- a/Userland/Libraries/LibRegex/RegexParser.cpp +++ b/Userland/Libraries/LibRegex/RegexParser.cpp @@ -62,7 +62,7 @@ ALWAYS_INLINE Token Parser::consume(TokenType type, Error error) { if (m_parser_state.current_token.type() != type) { set_error(error); - dbg() << "[PARSER] Error: Unexpected token " << m_parser_state.current_token.name() << ". Expected: " << Token::name(type); + dbgln("[PARSER] Error: Unexpected token {}. Expected: {}", m_parser_state.current_token.name(), Token::name(type)); } return consume(); } -- cgit v1.2.3