[gpm] [request] remove excessive debug messages

Mike Frysinger vapier@gentoo.org
Wed May 4 04:53:08 CEST 2005


both Gentoo and Redhat remove some debugging messages that seem to be 
unnecessary and just fill up log files with junk

the lines we are talking about:

--- gpm-1.20.1/src/lib/liblow.c
+++ gpm-1.20.1/src/lib/liblow.c
@@ -262,9 +262,10 @@
          }   
+#if 0
          /* do we really need this check ? */
          if(strncmp(tty,consolename,strlen(consolename)-1)
             || !isdigit(tty[strlen(consolename)-1])) {
             gpm_report(GPM_PR_ERR,"strncmp/isdigit/consolename failed");
             goto err;
          }
-          
+#endif
          conn->vc=atoi(&tty[strlen(consolename)-1]);
@@ -376,4 +376,6 @@
   /*....................................... Error: free all memory */
    err:
+#if 0
    gpm_report(GPM_PR_ERR,"Oh, oh, it's an error! possibly I die! ");
+#endif
    do {

-mike


More information about the gpm mailing list