summaryrefslogtreecommitdiff
path: root/AK/Format.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-19 17:07:31 +0000
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-19 11:01:49 -0700
commitdfc02f97618820c71d2626c7a79b456dda88e149 (patch)
tree6c308a2b3690cfa36115691896396ceb623274b7 /AK/Format.h
parent11ab8ee80ab2af227432a856cf2cf1b1f9f6e329 (diff)
downloadserenity-dfc02f97618820c71d2626c7a79b456dda88e149.zip
AK: Fix typo in warnln_if()
Diffstat (limited to 'AK/Format.h')
-rw-r--r--AK/Format.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/AK/Format.h b/AK/Format.h
index 83971c1474..661a37ce24 100644
--- a/AK/Format.h
+++ b/AK/Format.h
@@ -575,10 +575,10 @@ void warnln(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... pa
inline void warnln() { outln(stderr); }
-# define warnln_if(flag, fmt, ...) \
- do { \
- if constexpr (flag) \
- outln(fmt, ##__VA_ARGS__); \
+# define warnln_if(flag, fmt, ...) \
+ do { \
+ if constexpr (flag) \
+ warnln(fmt, ##__VA_ARGS__); \
} while (0)
#endif