* Moved KMessage field printing from vfs_boot.cpp::get_boot_partitions() into

KMessage::Dump().
* Improved message dump output a bit (more concise).
* get_boot_partitions() now simply calls KMessage::Dump() instead.
* Added a KMessage::IsEmpty() method.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26365 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-07-10 10:06:17 +00:00
parent 66058774c8
commit a120934388
3 changed files with 63 additions and 55 deletions
+2 -1
View File
@@ -55,6 +55,7 @@ public:
status_t FindField(const char *name, type_code type,
KMessageField *field) const;
status_t GetNextField(KMessageField *field) const;
bool IsEmpty() const;
status_t AddData(const char *name, type_code type, const void *data,
int32 numBytes, bool isFixedSize = true);
@@ -135,7 +136,7 @@ public:
status_t ReceiveFrom(port_id fromPort, bigtime_t timeout = -1,
port_message_info* messageInfo = NULL);
void Dump(void (*printFunc)(const char*,...)) const;
void Dump(void (*printFunc)(const char*, ...)) const;
private:
friend class KMessageField;