Title: [120707] trunk/Source/WebCore
Revision
120707
Author
[email protected]
Date
2012-06-19 06:59:20 -0700 (Tue, 19 Jun 2012)

Log Message

Replaced printf with fprintf in DEBUG_AUDIONODE_REFERENCES

Change printf to fprintf in DEBUG_AUDIONODE_REFERENCES
https://bugs.webkit.org/show_bug.cgi?id=86564

Patch by Andrei Poenaru <[email protected]> on 2012-06-19
Reviewed by Csaba Osztrogonác.

There is no need for new tests: writing data to stderr, instead of stdout.

* Modules/webaudio/AudioContext.cpp:
(WebCore::AudioContext::~AudioContext):
* Modules/webaudio/AudioNode.cpp:
(WebCore::AudioNode::~AudioNode):
(WebCore::AudioNode::ref):
(WebCore::AudioNode::finishDeref):
(WebCore::AudioNode::printNodeCounts):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (120706 => 120707)


--- trunk/Source/WebCore/ChangeLog	2012-06-19 12:59:39 UTC (rev 120706)
+++ trunk/Source/WebCore/ChangeLog	2012-06-19 13:59:20 UTC (rev 120707)
@@ -1,3 +1,22 @@
+2012-06-19  Andrei Poenaru  <[email protected]>
+
+        Replaced printf with fprintf in DEBUG_AUDIONODE_REFERENCES
+
+        Change printf to fprintf in DEBUG_AUDIONODE_REFERENCES
+        https://bugs.webkit.org/show_bug.cgi?id=86564
+
+        Reviewed by Csaba Osztrogonác.
+
+        There is no need for new tests: writing data to stderr, instead of stdout.
+
+        * Modules/webaudio/AudioContext.cpp:
+        (WebCore::AudioContext::~AudioContext):
+        * Modules/webaudio/AudioNode.cpp:
+        (WebCore::AudioNode::~AudioNode):
+        (WebCore::AudioNode::ref):
+        (WebCore::AudioNode::finishDeref):
+        (WebCore::AudioNode::printNodeCounts):
+
 2012-06-19  Dominik Röttsches  <[email protected]>
 
         [GTK] Assert failure in svg/batik/text/textDecoration.svg,textEffect3.svg for 64bit Debug bot

Modified: trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp (120706 => 120707)


--- trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp	2012-06-19 12:59:39 UTC (rev 120706)
+++ trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp	2012-06-19 13:59:20 UTC (rev 120707)
@@ -196,7 +196,7 @@
 AudioContext::~AudioContext()
 {
 #if DEBUG_AUDIONODE_REFERENCES
-    printf("%p: AudioContext::~AudioContext()\n", this);
+    fprintf(stderr, "%p: AudioContext::~AudioContext()\n", this);
 #endif
     // AudioNodes keep a reference to their context, so there should be no way to be in the destructor if there are still AudioNodes around.
     ASSERT(!m_nodesToDelete.size());

Modified: trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp (120706 => 120707)


--- trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp	2012-06-19 12:59:39 UTC (rev 120706)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp	2012-06-19 13:59:20 UTC (rev 120707)
@@ -62,7 +62,7 @@
 {
 #if DEBUG_AUDIONODE_REFERENCES
     --s_nodeCount[nodeType()];
-    printf("%p: %d: AudioNode::~AudioNode() %d %d\n", this, nodeType(), m_normalRefCount, m_connectionRefCount);
+    fprintf(stderr, "%p: %d: AudioNode::~AudioNode() %d %d\n", this, nodeType(), m_normalRefCount, m_connectionRefCount);
 #endif
 }
 
@@ -316,7 +316,7 @@
     }
 
 #if DEBUG_AUDIONODE_REFERENCES
-    printf("%p: %d: AudioNode::ref(%d) %d %d\n", this, nodeType(), refType, m_normalRefCount, m_connectionRefCount);
+    fprintf(stderr, "%p: %d: AudioNode::ref(%d) %d %d\n", this, nodeType(), refType, m_normalRefCount, m_connectionRefCount);
 #endif
 
     // See the disabling code in finishDeref() below. This handles the case where a node
@@ -379,7 +379,7 @@
     }
     
 #if DEBUG_AUDIONODE_REFERENCES
-    printf("%p: %d: AudioNode::deref(%d) %d %d\n", this, nodeType(), refType, m_normalRefCount, m_connectionRefCount);
+    fprintf(stderr, "%p: %d: AudioNode::deref(%d) %d %d\n", this, nodeType(), refType, m_normalRefCount, m_connectionRefCount);
 #endif
 
     if (!m_connectionRefCount) {
@@ -405,15 +405,15 @@
 
 void AudioNode::printNodeCounts()
 {
-    printf("\n\n");
-    printf("===========================\n");
-    printf("AudioNode: reference counts\n");
-    printf("===========================\n");
+    fprintf(stderr, "\n\n");
+    fprintf(stderr, "===========================\n");
+    fprintf(stderr, "AudioNode: reference counts\n");
+    fprintf(stderr, "===========================\n");
 
     for (unsigned i = 0; i < NodeTypeEnd; ++i)
-        printf("%d: %d\n", i, s_nodeCount[i]);
+        fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]);
 
-    printf("===========================\n\n\n");
+    fprintf(stderr, "===========================\n\n\n");
 }
 
 #endif // DEBUG_AUDIONODE_REFERENCES
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to