diff options
author | asynts <asynts@gmail.com> | 2021-01-11 21:13:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-16 11:54:35 +0100 |
commit | 01879d27c22a74a8900f570fa3e737f3d3f65fc1 (patch) | |
tree | fee4eb042fa58d79f14bf8c43eb2e5cb955c3450 /Userland/Libraries/LibRegex | |
parent | 4953c73fc179449bf17c544845fa888a0a6de926 (diff) | |
download | serenity-01879d27c22a74a8900f570fa3e737f3d3f65fc1.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibRegex')
-rw-r--r-- | Userland/Libraries/LibRegex/C/Regex.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibRegex/RegexParser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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(); } |