diff options
author | rubidium42 <rubidium@openttd.org> | 2021-06-12 09:10:17 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-13 12:45:45 +0200 |
commit | 55a11710a6c0f7942f3947711f2050c34782c39d (patch) | |
tree | 491b3009324e623236977614e91371a0ea4abac7 /src/console.cpp | |
parent | a99ac62c1ab816ee48cac85fdf834f9fdc599cb1 (diff) | |
download | openttd-55a11710a6c0f7942f3947711f2050c34782c39d.tar.xz |
Codechange: convert printf DEBUG statements to fmt Debug statements
Diffstat (limited to 'src/console.cpp')
-rw-r--r-- | src/console.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console.cpp b/src/console.cpp index f1fe46094..c18cbbcdf 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -271,7 +271,7 @@ static void IConsoleAliasExec(const IConsoleAlias *alias, byte tokencount, char char alias_buffer[ICON_MAX_STREAMSIZE] = { '\0' }; char *alias_stream = alias_buffer; - DEBUG(console, 6, "Requested command is an alias; parsing..."); + Debug(console, 6, "Requested command is an alias; parsing..."); if (recurse_count > ICON_MAX_RECURSE) { IConsoleError("Too many alias expansions, recursion limit reached. Aborting"); @@ -372,7 +372,7 @@ void IConsoleCmdExec(const char *cmdstr, const uint recurse_count) } } - DEBUG(console, 4, "Executing cmdline: '%s'", cmdstr); + Debug(console, 4, "Executing cmdline: '{}'", cmdstr); memset(&tokens, 0, sizeof(tokens)); memset(&tokenstream, 0, sizeof(tokenstream)); @@ -432,7 +432,7 @@ void IConsoleCmdExec(const char *cmdstr, const uint recurse_count) } for (uint i = 0; i < lengthof(tokens) && tokens[i] != nullptr; i++) { - DEBUG(console, 8, "Token %d is: '%s'", i, tokens[i]); + Debug(console, 8, "Token {} is: '{}'", i, tokens[i]); } if (StrEmpty(tokens[0])) return; // don't execute empty commands |