svn commit: r282245 - head/libexec/getty

Konstantin Belousov kib at FreeBSD.org
Wed Apr 29 19:47:19 UTC 2015


Author: kib
Date: Wed Apr 29 19:47:18 2015
New Revision: 282245
URL: https://svnweb.freebsd.org/changeset/base/282245

Log:
  Remove the #ifdef DEBUG code, which is not compilable on 64bit
  architectures.  It seems to be an overlooked chunk in the r15645.
  
  PR:	199767
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/libexec/getty/subr.c

Modified: head/libexec/getty/subr.c
==============================================================================
--- head/libexec/getty/subr.c	Wed Apr 29 19:08:11 2015	(r282244)
+++ head/libexec/getty/subr.c	Wed Apr 29 19:47:18 2015	(r282245)
@@ -38,9 +38,6 @@ static const char rcsid[] =
 /*
  * Melbourne getty.
  */
-#ifdef DEBUG
-#include <stdio.h>
-#endif
 #include <stdlib.h>
 #include <string.h>
 #include <termios.h>
@@ -160,17 +157,6 @@ gettable(const char *name, char *buf)
 			fp->value = 1 ^ fp->invrt;
 		}
 	}
-
-#ifdef DEBUG
-	printf("name=\"%s\", buf=\"%s\"\r\n", name, buf);
-	for (sp = gettystrs; sp->field; sp++)
-		printf("cgetstr: %s=%s\r\n", sp->field, sp->value);
-	for (np = gettynums; np->field; np++)
-		printf("cgetnum: %s=%d\r\n", np->field, np->value);
-	for (fp = gettyflags; fp->field; fp++)
-		printf("cgetflags: %s='%c' set='%c'\r\n", fp->field, 
-		       fp->value + '0', fp->set + '0');
-#endif /* DEBUG */
 }
 
 void


More information about the svn-src-head mailing list