mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
Kernel: Stop debug spam when using read on /dev/mem device
This is not really useful and quite annoying so let's disable it by default.
This commit is contained in:
parent
d0abae8907
commit
db8942178a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ UNMAP_AFTER_INIT MemoryDevice::~MemoryDevice() = default;
|
||||||
ErrorOr<size_t> MemoryDevice::read(OpenFileDescription&, u64 offset, UserOrKernelBuffer& buffer, size_t length)
|
ErrorOr<size_t> MemoryDevice::read(OpenFileDescription&, u64 offset, UserOrKernelBuffer& buffer, size_t length)
|
||||||
{
|
{
|
||||||
if (!MM.is_allowed_to_read_physical_memory_for_userspace(PhysicalAddress(offset), length)) {
|
if (!MM.is_allowed_to_read_physical_memory_for_userspace(PhysicalAddress(offset), length)) {
|
||||||
dbgln("MemoryDevice: Trying to read physical memory at {} for range of {} bytes failed due to violation of access", PhysicalAddress(offset), length);
|
dbgln_if(MEMORY_DEVICE_DEBUG, "MemoryDevice: Trying to read physical memory at {} for range of {} bytes failed due to violation of access", PhysicalAddress(offset), length);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
auto mapping = TRY(Memory::map_typed<u8>(PhysicalAddress(offset), length));
|
auto mapping = TRY(Memory::map_typed<u8>(PhysicalAddress(offset), length));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue