From 5500fb7bf044514f7448dfae919244b0c00779a6 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 22 Jul 1999 05:05:28 +0000 Subject: [PATCH] clean up my #defines. wrap another printf with #ifdef DEBUG_NEWS --- mailnews/news/src/nsNNTPProtocol.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mailnews/news/src/nsNNTPProtocol.cpp b/mailnews/news/src/nsNNTPProtocol.cpp index b65a28cc160..c30c091c7bc 100644 --- a/mailnews/news/src/nsNNTPProtocol.cpp +++ b/mailnews/news/src/nsNNTPProtocol.cpp @@ -1718,7 +1718,7 @@ PRInt32 nsNNTPProtocol::SendFirstNNTPCommand(nsIURI * url) PRUint32 last_update; if (!m_newsHost) { -#ifdef DEBUG +#ifdef DEBUG_NEWS printf("m_newsHost is null, panic!\n"); #endif return -1; @@ -1791,7 +1791,7 @@ PRInt32 nsNNTPProtocol::SendFirstNNTPCommand(nsIURI * url) nsresult rv; PRBool searchable=PR_FALSE; if (!m_newsHost) { -#ifdef DEBUG +#ifdef DEBUG_NEWS printf("m_newsHost is null, panic!\n"); #endif return -1; @@ -2244,9 +2244,11 @@ PRInt32 nsNNTPProtocol::ReadArticle(nsIInputStream * inputStream, PRUint32 lengt */ if (m_typeWanted != CANCEL_WANTED || nsCRT::strncmp(outputBuffer, "Content-Type:", 13)) { +#ifdef DEBUG_NEWS // for test purposes...we'd want to write this line out to an rfc-822 stream converter... // we don't have one now so print the data out so we can verify that we got it.... printf("%s", outputBuffer); +#endif // if we are attempting to cancel, we want to snarf the headers and save the aside, which is what // ParseHeaderForCancel() does. @@ -4638,7 +4640,7 @@ nsresult nsNNTPProtocol::ProcessProtocolState(nsIURI * url, nsIInputStream * inp while(!TestFlag(NNTP_PAUSE_FOR_READ)) { -#if DEBUG_NEWS +#ifdef DEBUG_NEWS printf("Next state: %s\n",stateLabels[m_nextState]); #endif // examine our current state and call an appropriate handler for that state.....