Skip to content

Commit

Permalink
unix: fix x86_64 build with trace.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Apr 29, 2016
1 parent c9dd7d0 commit 29fa68b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/add-ons/kernel/network/protocols/unix/unix.cpp
Expand Up @@ -63,7 +63,8 @@ destroy_scm_rights_descriptors(const ancillary_data_header* header,
net_protocol *
unix_init_protocol(net_socket *socket)
{
TRACE("[%ld] unix_init_protocol(%p)\n", find_thread(NULL), socket);
TRACE("[%" B_PRId32 "] unix_init_protocol(%p)\n", find_thread(NULL),
socket);

UnixEndpoint* endpoint = new(std::nothrow) UnixEndpoint(socket);
if (endpoint == NULL)
Expand All @@ -82,7 +83,8 @@ unix_init_protocol(net_socket *socket)
status_t
unix_uninit_protocol(net_protocol *_protocol)
{
TRACE("[%ld] unix_uninit_protocol(%p)\n", find_thread(NULL), _protocol);
TRACE("[%" B_PRId32 "] unix_uninit_protocol(%p)\n", find_thread(NULL),
_protocol);
((UnixEndpoint*)_protocol)->Uninit();
return B_OK;
}
Expand Down Expand Up @@ -287,9 +289,9 @@ status_t
unix_add_ancillary_data(net_protocol *self, ancillary_data_container *container,
const cmsghdr *header)
{
TRACE("[%ld] unix_add_ancillary_data(%p, %p, %p (level: %d, type: %d, "
"len: %d))\n", find_thread(NULL), self, container, header,
header->cmsg_level, header->cmsg_type, (int)header->cmsg_len);
TRACE("[%" B_PRId32 "] unix_add_ancillary_data(%p, %p, %p (level: %d, type: %d, "
"len: %" B_PRId32 "))\n", find_thread(NULL), self, container, header,
header->cmsg_level, header->cmsg_type, header->cmsg_len);

// we support only SCM_RIGHTS
if (header->cmsg_level != SOL_SOCKET || header->cmsg_type != SCM_RIGHTS)
Expand Down Expand Up @@ -325,7 +327,7 @@ unix_add_ancillary_data(net_protocol *self, ancillary_data_container *container,
header.type = SCM_RIGHTS;
header.len = count * sizeof(file_descriptor*);

TRACE("[%ld] unix_add_ancillary_data(): adding %d FDs to "
TRACE("[%" B_PRId32 "] unix_add_ancillary_data(): adding %d FDs to "
"container\n", find_thread(NULL), count);

error = gStackModule->add_ancillary_data(container, &header,
Expand All @@ -351,8 +353,8 @@ unix_process_ancillary_data(net_protocol *self,
const ancillary_data_header *header, const void *data, void *buffer,
size_t bufferSize)
{
TRACE("[%ld] unix_process_ancillary_data(%p, %p (level: %d, type: %d, "
"len: %lu), %p, %p, %lu)\n", find_thread(NULL), self, header,
TRACE("[%" B_PRId32 "] unix_process_ancillary_data(%p, %p (level: %d, "
"type: %d, len: %lu), %p, %p, %lu)\n", find_thread(NULL), self, header,
header->level, header->type, header->len, data, buffer, bufferSize);

// we support only SCM_RIGHTS
Expand Down

0 comments on commit 29fa68b

Please sign in to comment.