diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-06 13:36:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-06 13:36:06 +0200 |
commit | 3055f73d485c105952416e5a9cb43e47b7816aa3 (patch) | |
tree | 6b75cbfc66079afa4b7493b445fb06bd91ea7a48 /Libraries/LibC/stdio.cpp | |
parent | 2f1d596dd379c9c3e66bb5fef00d875b126d86b7 (diff) | |
download | serenity-3055f73d485c105952416e5a9cb43e47b7816aa3.zip |
AK+Kernel+LibC: Add vdbgprintf()
This is like dbgprintf() except it takes a va_list instead of ...
Diffstat (limited to 'Libraries/LibC/stdio.cpp')
-rw-r--r-- | Libraries/LibC/stdio.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibC/stdio.cpp b/Libraries/LibC/stdio.cpp index 8d9c0d0233..f0922acde4 100644 --- a/Libraries/LibC/stdio.cpp +++ b/Libraries/LibC/stdio.cpp @@ -802,6 +802,11 @@ void rewind(FILE* stream) ASSERT(rc == 0); } +int vdbgprintf(const char* fmt, va_list ap) +{ + return printf_internal([](char*&, char ch) { dbgputch(ch); }, nullptr, fmt, ap); +} + int dbgprintf(const char* fmt, ...) { va_list ap; |