* Turned off debug output of the FileMapDisk stuff.

* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27091 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-08-20 20:44:29 +00:00
parent 8b7a165ad3
commit 2a1a5a296f
2 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
#include <SupportDefs.h> #include <SupportDefs.h>
#define TRACE_FILEMAPDISK //#define TRACE_FILEMAPDISK
#ifdef TRACE_FILEMAPDISK #ifdef TRACE_FILEMAPDISK
# define TRACE(x) dprintf x # define TRACE(x) dprintf x
#else #else
+15 -15
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2003-2007, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2003-2008, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
@@ -79,21 +79,21 @@ namespace boot {
file descriptor upon deconstruction. file descriptor upon deconstruction.
*/ */
class NodeOpener { class NodeOpener {
public: public:
NodeOpener(Node *node, int mode) NodeOpener(Node *node, int mode)
{ {
fFD = open_node(node, mode); fFD = open_node(node, mode);
} }
~NodeOpener() ~NodeOpener()
{ {
close(fFD); close(fFD);
} }
int Descriptor() const { return fFD; } int Descriptor() const { return fFD; }
private: private:
int fFD; int fFD;
}; };
@@ -362,7 +362,7 @@ Partition::Scan(bool mountFileSystems, bool isBootDevice)
Partition *child = NULL; Partition *child = NULL;
while ((child = (Partition *)iterator.Next()) != NULL) { while ((child = (Partition *)iterator.Next()) != NULL) {
TRACE(("%p Partition::Scan: *** scan child %p (start = %Ld, size " TRACE(("%p Partition::Scan(): scan child %p (start = %Ld, size "
"= %Ld, parent = %p)!\n", this, child, child->offset, "= %Ld, parent = %p)!\n", this, child, child->offset,
child->size, child->Parent())); child->size, child->Parent()));
@@ -479,7 +479,7 @@ get_child_partition(partition_id id, int32 index)
{ {
//Partition &partition = *(Partition *)id; //Partition &partition = *(Partition *)id;
// ToDo: do we really have to implement this? // TODO: do we really have to implement this?
// The intel partition module doesn't really need 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)); TRACE(("get_child_partition(id = %lu, index = %ld)\n", id, index));