mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
Kernel/FileSystem: Use a new debug flag for SysFS debug messages
This commit is contained in:
parent
a6505f6e6d
commit
cf33d0b5f7
3 changed files with 6 additions and 1 deletions
|
@ -303,6 +303,10 @@
|
||||||
#cmakedefine01 STORAGE_DEVICE_DEBUG
|
#cmakedefine01 STORAGE_DEVICE_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SYSFS_DEBUG
|
||||||
|
#cmakedefine01 SYSFS_DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef TCP_DEBUG
|
#ifndef TCP_DEBUG
|
||||||
#cmakedefine01 TCP_DEBUG
|
#cmakedefine01 TCP_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -115,7 +115,7 @@ ErrorOr<void> SysFSUSBDeviceInformation::refresh_data(OpenFileDescription& descr
|
||||||
|
|
||||||
ErrorOr<size_t> SysFSUSBDeviceInformation::read_bytes(off_t offset, size_t count, UserOrKernelBuffer& buffer, OpenFileDescription* description) const
|
ErrorOr<size_t> SysFSUSBDeviceInformation::read_bytes(off_t offset, size_t count, UserOrKernelBuffer& buffer, OpenFileDescription* description) const
|
||||||
{
|
{
|
||||||
dbgln_if(PROCFS_DEBUG, "SysFSUSBDeviceInformation @ {}: read_bytes offset: {} count: {}", name(), offset, count);
|
dbgln_if(SYSFS_DEBUG, "SysFSUSBDeviceInformation @ {}: read_bytes offset: {} count: {}", name(), offset, count);
|
||||||
|
|
||||||
VERIFY(offset >= 0);
|
VERIFY(offset >= 0);
|
||||||
VERIFY(buffer.user_or_kernel_ptr());
|
VERIFY(buffer.user_or_kernel_ptr());
|
||||||
|
|
|
@ -177,6 +177,7 @@ set(SQLSERVER_DEBUG ON)
|
||||||
set(STORAGE_DEVICE_DEBUG ON)
|
set(STORAGE_DEVICE_DEBUG ON)
|
||||||
set(SYNTAX_HIGHLIGHTING_DEBUG ON)
|
set(SYNTAX_HIGHLIGHTING_DEBUG ON)
|
||||||
set(SYSCALL_1_DEBUG ON)
|
set(SYSCALL_1_DEBUG ON)
|
||||||
|
set(SYSFS_DEBUG ON)
|
||||||
set(SYSTEM_MENU_DEBUG ON)
|
set(SYSTEM_MENU_DEBUG ON)
|
||||||
set(SYSTEMSERVER_DEBUG ON)
|
set(SYSTEMSERVER_DEBUG ON)
|
||||||
set(TCP_DEBUG ON)
|
set(TCP_DEBUG ON)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue