mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)
Good-bye LogStream. Long live AK::Format!
This commit is contained in:
parent
423ed53396
commit
ef1e5db1d0
209 changed files with 164 additions and 837 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue