Fix build with tracing disabled.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42283 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-06-22 20:37:13 +00:00
parent 46b619c39d
commit 29fdb533ba

View File

@ -81,14 +81,17 @@ BMessageValueNode::ResolvedLocationAndValue(ValueLoader* valueLoader,
uint8 buffer[sizeof(BMessage)];
error = valueLoader->LoadRawValue(addressData, sizeof(BMessage), buffer);
#ifdef TRACE_LOCALS
if (error == B_OK) {
BMessage* message = (BMessage *)buffer;
BMessage* message = (BMessage*)buffer;
TRACE_LOCALS("Loaded BMessage('%c%c%c%c')\n",
char((message->what >> 24) & 0xff),
char((message->what >> 16) & 0xff),
char((message->what >> 8) & 0xff),
char(message->what & 0xff));
}
#endif
return B_BAD_VALUE;
}