]> Cypherpunks repositories - gostls13.git/commitdiff
spelling
authorKen Thompson <ken@golang.org>
Tue, 27 Jan 2009 21:23:28 +0000 (13:23 -0800)
committerKen Thompson <ken@golang.org>
Tue, 27 Jan 2009 21:23:28 +0000 (13:23 -0800)
R=r
OCL=23602
CL=23602

src/runtime/chan.c
src/runtime/runtime.h

index 6f89fa395357ae07abd7f559834780d7d6e7a3ab..7e6f830f6c1039f80af807ff3209560f381ba1f0 100644 (file)
@@ -5,7 +5,6 @@
 #include "runtime.h"
 
 static int32   debug   = 0;
-static int32   xxx     = 0;
 static Lock            chanlock;
 
 typedef        struct  Hchan   Hchan;
@@ -548,7 +547,7 @@ sys·selectgo(Select *sel)
        G *gp;
        byte *as;
 
-       if(xxx) {
+       if(debug) {
                prints("selectgo: sel=");
                sys·printpointer(sel);
                prints("\n");
@@ -697,7 +696,7 @@ loop:
                goto loop;
        }
 
-       if(xxx) {
+       if(debug) {
                prints("wait-return: sel=");
                sys·printpointer(sel);
                prints(" c=");
@@ -747,7 +746,7 @@ asyns:
 
 gotr:
        // recv path to wakeup the sender (sg)
-       if(xxx) {
+       if(debug) {
                prints("gotr: sel=");
                sys·printpointer(sel);
                prints(" c=");
@@ -765,7 +764,7 @@ gotr:
 
 gots:
        // send path to wakeup the receiver (sg)
-       if(xxx) {
+       if(debug) {
                prints("gots: sel=");
                sys·printpointer(sel);
                prints(" c=");
index 78e2affc62733817af308dd6951839ec9c4b4cdb..c63512db6adace41de860ba796021d46d83c9361 100644 (file)
@@ -238,7 +238,7 @@ enum
 };
 
 /*
- * defered subroutine calls
+ * deferred subroutine calls
  */
 struct Defer
 {