mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:05:08 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
7b0a1a98d9
commit
27bc48e06c
11 changed files with 116 additions and 109 deletions
|
@ -24,14 +24,13 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/Debug.h>
|
||||
#include <Kernel/VM/ContiguousVMObject.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <Kernel/VM/PhysicalPage.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
//#define CONTIGUOUS_VMOBJECT_DEBUG
|
||||
|
||||
NonnullRefPtr<ContiguousVMObject> ContiguousVMObject::create_with_size(size_t size)
|
||||
{
|
||||
return adopt(*new ContiguousVMObject(size));
|
||||
|
@ -43,9 +42,7 @@ ContiguousVMObject::ContiguousVMObject(size_t size)
|
|||
auto contiguous_physical_pages = MM.allocate_contiguous_supervisor_physical_pages(size);
|
||||
for (size_t i = 0; i < page_count(); i++) {
|
||||
physical_pages()[i] = contiguous_physical_pages[i];
|
||||
#ifdef CONTIGUOUS_VMOBJECT_DEBUG
|
||||
dbg() << "Contiguous page[" << i << "]: " << physical_pages()[i]->paddr();
|
||||
#endif
|
||||
dbgln<debug_contiguous_vmobject>("Contiguous page[{}]: {}", i, physical_pages()[i]->paddr());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue