* Turned on debugging in the Intel partitioning system add-on, and the partition
stuff of the boot loader to help with bug #238. * Minor cleanup (added license headers, fixed debug output) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18977 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
//----------------------------------------------------------------------
|
||||
// This software is part of the OpenBeOS distribution and is covered
|
||||
// by the OpenBeOS license.
|
||||
//---------------------------------------------------------------------
|
||||
/*
|
||||
* Copyright 2003-2006, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Ingo Weinhold, [email protected]
|
||||
*/
|
||||
|
||||
/*!
|
||||
\file PartitionMap.cpp
|
||||
\brief Definitions for "intel" style partitions and implementation
|
||||
@@ -28,8 +32,8 @@
|
||||
|
||||
#include "PartitionMap.h"
|
||||
|
||||
#define TRACE(x) ;
|
||||
//#define TRACE(x) dprintf x
|
||||
//#define TRACE(x) ;
|
||||
#define TRACE(x) dprintf x
|
||||
|
||||
|
||||
using std::nothrow;
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
// PartitionMapParser.cpp
|
||||
/*
|
||||
* Copyright 2003-2006, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Ingo Weinhold, [email protected]
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _USER_MODE
|
||||
# include <KernelExport.h>
|
||||
@@ -14,8 +21,8 @@
|
||||
#include "PartitionMap.h"
|
||||
#include "PartitionMapParser.h"
|
||||
|
||||
#define TRACE(x) ;
|
||||
//#define TRACE(x) dprintf x
|
||||
//#define TRACE(x) ;
|
||||
#define TRACE(x) dprintf x
|
||||
|
||||
|
||||
using std::nothrow;
|
||||
@@ -90,7 +97,7 @@ PartitionMapParser::_ParsePrimary(const partition_table_sector *pts)
|
||||
// ignore, if location is bad
|
||||
if (!partition->CheckLocation(fSessionSize, fBlockSize)) {
|
||||
TRACE(("intel: _ParsePrimary(): partition %ld: bad location, "
|
||||
"ignoring\n"));
|
||||
"ignoring\n", i));
|
||||
partition->Unset();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
//----------------------------------------------------------------------
|
||||
// This software is part of the Haiku distribution and is covered
|
||||
// by the Haiku license.
|
||||
//---------------------------------------------------------------------
|
||||
/*
|
||||
* Copyright 2003-2006, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Ingo Weinhold, [email protected]
|
||||
*/
|
||||
|
||||
/*!
|
||||
\file intel.cpp
|
||||
\brief disk_scanner partition module for "intel" style partitions.
|
||||
@@ -31,8 +35,8 @@
|
||||
#include "PartitionMap.h"
|
||||
#include "PartitionMapParser.h"
|
||||
|
||||
#define TRACE(x) ;
|
||||
//#define TRACE(x) dprintf x
|
||||
//#define TRACE(x) ;
|
||||
#define TRACE(x) dprintf x
|
||||
|
||||
// module names
|
||||
#define INTEL_PARTITION_MODULE_NAME "partitioning_systems/intel/map/v1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
using namespace boot;
|
||||
|
||||
//#define TRACE_PARTITIONS
|
||||
#define TRACE_PARTITIONS
|
||||
#ifdef TRACE_PARTITIONS
|
||||
# define TRACE(x) dprintf x
|
||||
#else
|
||||
@@ -409,7 +409,8 @@ get_child_partition(partition_id id, int32 index)
|
||||
//Partition &partition = *(Partition *)id;
|
||||
|
||||
// ToDo: do we really have to implement this?
|
||||
// The intel partition module doesn't really needs this for our mission...
|
||||
// The intel partition module doesn't really need this for our mission...
|
||||
TRACE(("get_child_partition(id = %lu, index = %ld)\n", id, index));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user