svn commit: trunk/busybox/networking
vapier at busybox.net
vapier at busybox.net
Wed May 10 17:14:33 UTC 2006
Author: vapier
Date: 2006-05-10 10:14:32 -0700 (Wed, 10 May 2006)
New Revision: 15052
Log:
some more useful debug info from Jason Holden
Modified:
trunk/busybox/networking/telnetd.c
Changeset:
Modified: trunk/busybox/networking/telnetd.c
===================================================================
--- trunk/busybox/networking/telnetd.c 2006-05-10 17:12:12 UTC (rev 15051)
+++ trunk/busybox/networking/telnetd.c 2006-05-10 17:14:32 UTC (rev 15052)
@@ -22,6 +22,7 @@
*/
/*#define DEBUG 1 */
+#undef DEBUG
#include <sys/time.h>
#include <sys/socket.h>
@@ -223,6 +224,9 @@
}
for (j = 0; j < 16; j++) {
line[9] = j < 10 ? j + '0' : j - 10 + 'a';
+#ifdef DEBUG
+ fprintf(stderr, "Trying to open device: %s\n", line);
+#endif
if ((p = open(line, O_RDWR | O_NOCTTY)) >= 0) {
line[5] = 't';
return p;
@@ -277,7 +281,7 @@
pty = getpty(tty_name);
if (pty < 0) {
- syslog(LOG_ERR, "All network ports in use!");
+ syslog(LOG_ERR, "All terminals in use!");
return 0;
}
More information about the busybox-cvs
mailing list