summaryrefslogtreecommitdiff
path: root/Libraries/LibC/stdio.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-06 13:36:06 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-06 13:36:06 +0200
commit3055f73d485c105952416e5a9cb43e47b7816aa3 (patch)
tree6b75cbfc66079afa4b7493b445fb06bd91ea7a48 /Libraries/LibC/stdio.cpp
parent2f1d596dd379c9c3e66bb5fef00d875b126d86b7 (diff)
downloadserenity-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.cpp5
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;