Author: axeld Date: 2010-06-17 09:24:19 +0200 (Thu, 17 Jun 2010) New Revision: 37162 Changeset: http://dev.haiku-os.org/changeset/37162/haiku Modified: haiku/trunk/src/system/kernel/debug/tracing.cpp Log: * Seems like someone wasn't quite awake when doing these changes; the kernel now compiles again with tracing turned on. Modified: haiku/trunk/src/system/kernel/debug/tracing.cpp =================================================================== --- haiku/trunk/src/system/kernel/debug/tracing.cpp 2010-06-17 04:58:54 UTC (rev 37161) +++ haiku/trunk/src/system/kernel/debug/tracing.cpp 2010-06-17 07:24:19 UTC (rev 37162) @@ -423,8 +423,8 @@ physical_address_restrictions physicalRestrictions = {}; physicalRestrictions.low_address = metaDataAddress; physicalRestrictions.high_address = metaDataAddress + B_PAGE_SIZE; - area_id create_area_etc(B_SYSTEM_TEAM, "tracing metadata", B_PAGE_SIZE, - B_FULL_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, + area_id area = create_area_etc(B_SYSTEM_TEAM, "tracing metadata", + B_PAGE_SIZE, B_FULL_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, CREATE_AREA_DONT_CLEAR, &virtualRestrictions, &physicalRestrictions, (void**)&metaData); if (area < 0) @@ -478,7 +478,7 @@ physical_address_restrictions physicalRestrictions = {}; physicalRestrictions.low_address = fPhysicalAddress; physicalRestrictions.high_address = fPhysicalAddress - + ROUNDUP(kTraceOutputBufferSize + MAX_TRACE_SIZE); + + ROUNDUP(kTraceOutputBufferSize + MAX_TRACE_SIZE, B_PAGE_SIZE); area_id area = create_area_etc(B_SYSTEM_TEAM, "tracing log", kTraceOutputBufferSize + MAX_TRACE_SIZE, B_CONTIGUOUS, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, CREATE_AREA_DONT_CLEAR,