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/string.cpp | |
parent | a99ac62c1ab816ee48cac85fdf834f9fdc599cb1 (diff) | |
download | openttd-55a11710a6c0f7942f3947711f2050c34782c39d.tar.xz |
Codechange: convert printf DEBUG statements to fmt Debug statements
Diffstat (limited to 'src/string.cpp')
-rw-r--r-- | src/string.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.cpp b/src/string.cpp index fbb447ee9..d027cb7bf 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -121,7 +121,7 @@ char *strecpy(char *dst, const char *src, const char *last) #if defined(STRGEN) || defined(SETTINGSGEN) error("String too long for destination buffer"); #else /* STRGEN || SETTINGSGEN */ - DEBUG(misc, 0, "String too long for destination buffer"); + Debug(misc, 0, "String too long for destination buffer"); #endif /* STRGEN || SETTINGSGEN */ } return dst; @@ -599,7 +599,7 @@ size_t Utf8Decode(WChar *c, const char *s) } } - /* DEBUG(misc, 1, "[utf8] invalid UTF-8 sequence"); */ + /* Debug(misc, 1, "[utf8] invalid UTF-8 sequence"); */ *c = '?'; return 1; } @@ -635,7 +635,7 @@ inline size_t Utf8Encode(T buf, WChar c) return 4; } - /* DEBUG(misc, 1, "[utf8] can't UTF-8 encode value 0x%X", c); */ + /* Debug(misc, 1, "[utf8] can't UTF-8 encode value 0x{:X}", c); */ *buf = '?'; return 1; } |