Added optional tracing facilities.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30690 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
91ad692e57
commit
7ba970b9cc
@ -5,9 +5,8 @@
|
||||
|
||||
#include "ExtendedPartitionAddOn.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <new>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <DiskDeviceTypes.h>
|
||||
#include <MutablePartition.h>
|
||||
@ -17,6 +16,14 @@
|
||||
|
||||
#include "IntelDiskSystem.h"
|
||||
|
||||
//#define TRACE_EXTENDED_PARTITION_ADD_ON
|
||||
#undef TRACE
|
||||
#ifdef TRACE_EXTENDED_PARTITION_ADD_ON
|
||||
# define TRACE(x...) printf(x)
|
||||
#else
|
||||
# define TRACE(x...) do {} while (false)
|
||||
#endif
|
||||
|
||||
|
||||
using std::nothrow;
|
||||
|
||||
@ -244,6 +251,9 @@ status_t
|
||||
ExtendedPartitionHandle::GetNextSupportedType(const BMutablePartition* child,
|
||||
int32* cookie, BString* type)
|
||||
{
|
||||
TRACE("%p->ExtendedPartitionHandle::GetNextSupportedType(child: %p, "
|
||||
"cookie: %ld)\n", this, child, *cookie);
|
||||
|
||||
if (*cookie != 0)
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
*cookie = *cookie + 1;
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "PartitionMapAddOn.h"
|
||||
|
||||
#include <new>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <DiskDeviceTypes.h>
|
||||
#include <MutablePartition.h>
|
||||
@ -16,6 +17,15 @@
|
||||
#include "IntelDiskSystem.h"
|
||||
|
||||
|
||||
//#define TRACE_PARTITION_MAP_ADD_ON
|
||||
#undef TRACE
|
||||
#ifdef TRACE_PARTITION_MAP_ADD_ON
|
||||
# define TRACE(x...) printf(x)
|
||||
#else
|
||||
# define TRACE(x...) do {} while (false)
|
||||
#endif
|
||||
|
||||
|
||||
using std::nothrow;
|
||||
|
||||
|
||||
@ -251,6 +261,8 @@ status_t
|
||||
PartitionMapHandle::GetNextSupportedType(const BMutablePartition* child,
|
||||
int32* cookie, BString* type)
|
||||
{
|
||||
TRACE("%p->PartitionMapHandle::GetNextSupportedType(child: %p, "
|
||||
"cookie: %ld)\n", this, child, *cookie);
|
||||
// TODO: What are we supposed to do with the child?
|
||||
|
||||
// we support creating two types, primary and extended
|
||||
|
Loading…
Reference in New Issue
Block a user