Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson

git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-10-27 22:43:51 +00:00
parent e7c9040b5e
commit c6b67eceeb
757 changed files with 10724 additions and 8223 deletions

View File

@@ -46,6 +46,11 @@
#include "nsEditorUtils.h"
#include "nsHTMLEditUtils.h"
#include "nslog.h"
NS_IMPL_LOG(nsTableEditorLog)
#define PRINTF NS_LOG_PRINTF(nsTableEditorLog)
#define FLUSH NS_LOG_FLUSH(nsTableEditorLog)
//#define DEBUG_TABLE 1
@@ -357,7 +362,7 @@ nsHTMLEditor::GetNextRow(nsIDOMElement* aTableElement, nsIDOMElement* &aRow)
return NS_OK;
}
#ifdef DEBUG_cmanske
printf("GetNextRow: firstChild of row's parent's sibling is not a TR!\n");
PRINTF("GetNextRow: firstChild of row's parent's sibling is not a TR!\n");
#endif
// We arrive here only if a table section has no children
// or first child of section is not a row (bad HTML!)
@@ -2500,9 +2505,7 @@ nsHTMLEditor::NormalizeTable(nsIDOMElement *aTable)
if (!cell)
{
//We are missing a cell at a cellmap location
#ifdef DEBUG
printf("NormalizeTable found missing cell at row=%d, col=%d\n", rowIndex, colIndex);
#endif
PRINTF("NormalizeTable found missing cell at row=%d, col=%d\n", rowIndex, colIndex);
// Add a cell after the previous Cell in the current row
if(previousCellInRow)
{
@@ -2515,9 +2518,7 @@ nsHTMLEditor::NormalizeTable(nsIDOMElement *aTable)
startRowIndex = rowIndex;
} else {
// We don't have any cells in this row -- We are really messed up!
#ifdef DEBUG
printf("NormalizeTable found no cells in row=%d, col=%d\n", rowIndex, colIndex);
#endif
PRINTF("NormalizeTable found no cells in row=%d, col=%d\n", rowIndex, colIndex);
return NS_ERROR_FAILURE;
}
}
@@ -2934,7 +2935,7 @@ nsHTMLEditor::GetNextSelectedCell(nsIDOMElement **aCell, nsIDOMRange **aRange)
if (*aCell) break;
#ifdef DEBUG_cmanske
else
printf("GetNextSelectedCell: Collapsed range found\n");
PRINTF("GetNextSelectedCell: Collapsed range found\n");
#endif
// If we didn't find a cell, continue to next range in selection
@@ -3027,7 +3028,7 @@ nsHTMLEditor::SetSelectionAfterTableEdit(nsIDOMElement* aTable, PRInt32 aRow, PR
if (!selection)
{
#ifdef DEBUG_cmanske
printf("Selection not found after table manipulation!\n");
PRINTF("Selection not found after table manipulation!\n");
#endif
return NS_ERROR_FAILURE;
}