mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Kernel: Fix sys$dbgputstr(...) to take a char* instead of u8*
We always attempt to print this as a string, and it's defined as such in LibC, so fix the signature to match.
This commit is contained in:
parent
1ee1ef5103
commit
5121e58d4a
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ KResultOr<FlatPtr> Process::sys$dbgputch(u8 ch)
|
|||
return 0;
|
||||
}
|
||||
|
||||
KResultOr<FlatPtr> Process::sys$dbgputstr(Userspace<const u8*> characters, size_t size)
|
||||
KResultOr<FlatPtr> Process::sys$dbgputstr(Userspace<const char*> characters, size_t size)
|
||||
{
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
if (size == 0)
|
||||
|
@ -39,7 +39,7 @@ KResultOr<FlatPtr> Process::sys$dbgputstr(Userspace<const u8*> characters, size_
|
|||
return size;
|
||||
}
|
||||
|
||||
auto result = try_copy_kstring_from_user(reinterpret_cast<char const*>(characters.unsafe_userspace_ptr()), size);
|
||||
auto result = try_copy_kstring_from_user(characters, size);
|
||||
if (result.is_error())
|
||||
return result.error();
|
||||
dbgputstr(result.value()->characters(), size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue