mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
Kernel: Introduce a StringView overload of dbgputstr(..)
This commit is contained in:
committed by
Andreas Kling
parent
060503ef25
commit
1ee1ef5103
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <AK/PrintfImplementation.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/ConsoleDevice.h>
|
||||
#include <Kernel/Devices/PCISerialDevice.h>
|
||||
@@ -165,6 +166,11 @@ extern "C" void dbgputstr(const char* characters, size_t length)
|
||||
internal_dbgputch(characters[i]);
|
||||
}
|
||||
|
||||
void dbgputstr(StringView view)
|
||||
{
|
||||
::dbgputstr(view.characters_without_null_termination(), view.length());
|
||||
}
|
||||
|
||||
extern "C" void kernelputstr(const char* characters, size_t length)
|
||||
{
|
||||
if (!characters)
|
||||
|
||||
Reference in New Issue
Block a user