mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
AK: Make the return type of dbgputstr consistent.
This commit is contained in:
parent
4cf3a1eb41
commit
59e7ffa86d
5 changed files with 9 additions and 6 deletions
|
@ -35,7 +35,7 @@
|
|||
extern "C" {
|
||||
int vdbgprintf(const char* fmt, va_list);
|
||||
int dbgprintf(const char* fmt, ...);
|
||||
ssize_t dbgputstr(const char*, ssize_t);
|
||||
int dbgputstr(const char*, ssize_t);
|
||||
int sprintf(char* buf, const char* fmt, ...);
|
||||
int snprintf(char* buffer, size_t, const char* fmt, ...);
|
||||
}
|
||||
|
@ -44,9 +44,10 @@ int snprintf(char* buffer, size_t, const char* fmt, ...);
|
|||
# include <stdio.h>
|
||||
# define kprintf printf
|
||||
# define dbgprintf(...) fprintf(stderr, __VA_ARGS__)
|
||||
inline size_t dbgputstr(const char* characters, ssize_t length)
|
||||
inline int dbgputstr(const char* characters, ssize_t length)
|
||||
{
|
||||
return fwrite(characters, 1, length, stderr);
|
||||
fwrite(characters, 1, length, stderr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
template<size_t N>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue