mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Kernel: Use klog() instead of kprintf()
Also, duplicate data in dbg() and klog() calls were removed. In addition, leakage of virtual address to kernel log is prevented. This is done by replacing kprintf() calls to dbg() calls with the leaked data instead. Also, other kprintf() calls were replaced with klog().
This commit is contained in:
parent
19aa53e1f9
commit
0fc60e41dd
Notes:
sideshowbarker
2024-07-19 08:55:45 +09:00
Author: https://github.com/supercomputer7
Commit: 0fc60e41dd
Pull-request: https://github.com/SerenityOS/serenity/pull/1322
53 changed files with 397 additions and 573 deletions
|
@ -125,7 +125,7 @@ DiskBackedFS::~DiskBackedFS()
|
|||
bool DiskBackedFS::write_block(unsigned index, const u8* data, FileDescription* description)
|
||||
{
|
||||
#ifdef DBFS_DEBUG
|
||||
kprintf("DiskBackedFileSystem::write_block %u, size=%u\n", index, data.size());
|
||||
klog() << "DiskBackedFileSystem::write_block " << index << ", size=" << data.size();
|
||||
#endif
|
||||
|
||||
bool allow_cache = !description || !description->is_direct();
|
||||
|
@ -149,7 +149,7 @@ bool DiskBackedFS::write_block(unsigned index, const u8* data, FileDescription*
|
|||
bool DiskBackedFS::write_blocks(unsigned index, unsigned count, const u8* data, FileDescription* description)
|
||||
{
|
||||
#ifdef DBFS_DEBUG
|
||||
kprintf("DiskBackedFileSystem::write_blocks %u x%u\n", index, count);
|
||||
klog() << "DiskBackedFileSystem::write_blocks " << index << " x%u" << count;
|
||||
#endif
|
||||
for (unsigned i = 0; i < count; ++i)
|
||||
write_block(index + i, data + i * block_size(), description);
|
||||
|
@ -159,7 +159,7 @@ bool DiskBackedFS::write_blocks(unsigned index, unsigned count, const u8* data,
|
|||
bool DiskBackedFS::read_block(unsigned index, u8* buffer, FileDescription* description) const
|
||||
{
|
||||
#ifdef DBFS_DEBUG
|
||||
kprintf("DiskBackedFileSystem::read_block %u\n", index);
|
||||
klog() << "DiskBackedFileSystem::read_block " << index;
|
||||
#endif
|
||||
|
||||
bool allow_cache = !description || !description->is_direct();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue