1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:17:35 +00:00

Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)

Good-bye LogStream. Long live AK::Format!
This commit is contained in:
Andreas Kling 2021-03-12 17:29:37 +01:00
parent 423ed53396
commit ef1e5db1d0
209 changed files with 164 additions and 837 deletions

View file

@ -33,21 +33,20 @@
# include <AK/Types.h>
# include <stdarg.h>
extern "C" {
int dbgputstr(const char*, ssize_t);
void dbgputstr(const char*, size_t);
int sprintf(char* buf, const char* fmt, ...) __attribute__((format(printf, 2, 3)));
int snprintf(char* buffer, size_t, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
}
# endif
#else
# include <stdio.h>
inline int dbgputstr(const char* characters, ssize_t length)
inline void dbgputstr(const char* characters, size_t length)
{
fwrite(characters, 1, length, stderr);
return 0;
}
#endif
template<size_t N>
inline int dbgputstr(const char (&array)[N])
inline void dbgputstr(const char (&array)[N])
{
return ::dbgputstr(array, N);
}