diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-21 21:43:37 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-21 21:43:37 +0200 |
commit | af81645a2a085ab6b6f44098d54231e48d575852 (patch) | |
tree | 59fee931c640f98eb4d615abaab641298f758949 /Libraries/LibC/stdio.cpp | |
parent | 0ef13e60b01975f23b9597f378704d3e19644ad5 (diff) | |
download | serenity-af81645a2a085ab6b6f44098d54231e48d575852.zip |
Kernel+LibC: Add a dbgputstr() syscall for sending strings to debug output.
This is very handy for the DebugLogStream implementation, among others. :^)
Diffstat (limited to 'Libraries/LibC/stdio.cpp')
-rw-r--r-- | Libraries/LibC/stdio.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibC/stdio.cpp b/Libraries/LibC/stdio.cpp index 2ce4a8ab5b..b1288a5780 100644 --- a/Libraries/LibC/stdio.cpp +++ b/Libraries/LibC/stdio.cpp @@ -488,6 +488,12 @@ void dbgputch(char ch) syscall(SC_dbgputch, ch); } +int dbgputstr(const char* characters, int length) +{ + int rc = syscall(SC_dbgputstr, characters, length); + __RETURN_WITH_ERRNO(rc, rc, -1); +} + char* tmpnam(char*) { ASSERT_NOT_REACHED(); |