diff options
Diffstat (limited to 'ncpd/linkchan.cc')
-rw-r--r-- | ncpd/linkchan.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ncpd/linkchan.cc b/ncpd/linkchan.cc index e5d7c13..2f9a066 100644 --- a/ncpd/linkchan.cc +++ b/ncpd/linkchan.cc @@ -31,7 +31,13 @@ linkChan::linkChan(ncp * _ncpController):channel(_ncpController) void linkChan:: ncpDataCallback(bufferStore & a) { - cout << "linkchan: got message " << a << endl; + if (verbose & LINKCHAN_DEBUG_LOG) { + cout << "linkchan: << msg "; + if (verbose & LINKCHAN_DEBUG_DUMP) + cout << a << endl; + else + cout << a.getLen() << endl; + } } const char *linkChan:: @@ -43,12 +49,14 @@ getNcpConnectName() void linkChan:: ncpConnectAck() { - cout << "linkchan: got connect ack\n"; + if (verbose & LINKCHAN_DEBUG_LOG) + cout << "linkchan: << cack" << endl; } void linkChan:: ncpConnectTerminate() { - cout << "linkchan: got connect terminate\n"; + if (verbose & LINKCHAN_DEBUG_LOG) + cout << "linkchan: << ctrm" << endl; terminateWhenAsked(); } |