Added a bit more debug output in UnixFifo, but disabled debug output in
all files by default. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25285 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
#include "UnixFifo.h"
|
#include "UnixFifo.h"
|
||||||
|
|
||||||
|
|
||||||
#define UNIX_ENDPOINT_DEBUG_LEVEL 2
|
#define UNIX_ENDPOINT_DEBUG_LEVEL 0
|
||||||
#define UNIX_DEBUG_LEVEL UNIX_ENDPOINT_DEBUG_LEVEL
|
#define UNIX_DEBUG_LEVEL UNIX_ENDPOINT_DEBUG_LEVEL
|
||||||
#include "UnixDebug.h"
|
#include "UnixDebug.h"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "unix.h"
|
#include "unix.h"
|
||||||
|
|
||||||
|
|
||||||
#define UNIX_FIFO_DEBUG_LEVEL 2
|
#define UNIX_FIFO_DEBUG_LEVEL 0
|
||||||
#define UNIX_DEBUG_LEVEL UNIX_FIFO_DEBUG_LEVEL
|
#define UNIX_DEBUG_LEVEL UNIX_FIFO_DEBUG_LEVEL
|
||||||
#include "UnixDebug.h"
|
#include "UnixDebug.h"
|
||||||
|
|
||||||
@@ -359,6 +359,9 @@ UnixFifo::Init()
|
|||||||
void
|
void
|
||||||
UnixFifo::Shutdown(uint32 shutdown)
|
UnixFifo::Shutdown(uint32 shutdown)
|
||||||
{
|
{
|
||||||
|
TRACE("[%ld] %p->UnixFifo::Shutdown(0x%lx)\n", find_thread(NULL), this,
|
||||||
|
shutdown);
|
||||||
|
|
||||||
fShutdown |= shutdown;
|
fShutdown |= shutdown;
|
||||||
|
|
||||||
if (shutdown != 0) {
|
if (shutdown != 0) {
|
||||||
@@ -372,8 +375,8 @@ UnixFifo::Shutdown(uint32 shutdown)
|
|||||||
status_t
|
status_t
|
||||||
UnixFifo::Read(size_t numBytes, bigtime_t timeout, net_buffer** _buffer)
|
UnixFifo::Read(size_t numBytes, bigtime_t timeout, net_buffer** _buffer)
|
||||||
{
|
{
|
||||||
TRACE("[%ld] UnixFifo::Read(%lu, %lld)\n", find_thread(NULL), numBytes,
|
TRACE("[%ld] %p->UnixFifo::Read(%lu, %lld)\n", find_thread(NULL), this,
|
||||||
timeout);
|
numBytes, timeout);
|
||||||
|
|
||||||
if (IsReadShutdown())
|
if (IsReadShutdown())
|
||||||
return UNIX_FIFO_SHUTDOWN;
|
return UNIX_FIFO_SHUTDOWN;
|
||||||
@@ -408,6 +411,9 @@ UnixFifo::Read(size_t numBytes, bigtime_t timeout, net_buffer** _buffer)
|
|||||||
status_t
|
status_t
|
||||||
UnixFifo::Write(net_buffer* buffer, bigtime_t timeout)
|
UnixFifo::Write(net_buffer* buffer, bigtime_t timeout)
|
||||||
{
|
{
|
||||||
|
TRACE("[%ld] %p->UnixFifo::Write(%p (%lu), %lld)\n", find_thread(NULL),
|
||||||
|
this, buffer, buffer->size, timeout);
|
||||||
|
|
||||||
if (IsWriteShutdown())
|
if (IsWriteShutdown())
|
||||||
return UNIX_FIFO_SHUTDOWN;
|
return UNIX_FIFO_SHUTDOWN;
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#define UNIX_FIFO_MAXIMAL_CAPACITY (128 * 1024)
|
#define UNIX_FIFO_MAXIMAL_CAPACITY (128 * 1024)
|
||||||
|
|
||||||
|
|
||||||
#define TRACE_BUFFER_QUEUE 1
|
#define TRACE_BUFFER_QUEUE 0
|
||||||
|
|
||||||
|
|
||||||
class UnixBufferQueue {
|
class UnixBufferQueue {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include "UnixEndpoint.h"
|
#include "UnixEndpoint.h"
|
||||||
|
|
||||||
|
|
||||||
#define UNIX_MODULE_DEBUG_LEVEL 2
|
#define UNIX_MODULE_DEBUG_LEVEL 0
|
||||||
#define UNIX_DEBUG_LEVEL UNIX_MODULE_DEBUG_LEVEL
|
#define UNIX_DEBUG_LEVEL UNIX_MODULE_DEBUG_LEVEL
|
||||||
#include "UnixDebug.h"
|
#include "UnixDebug.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user