From 5843f20a9d5e4d6840fa92f239258b11297cb36c Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 15 Apr 2000 11:56:35 +0000 Subject: [lcd4linux @ 2000-04-15 11:56:35 by reinelt] more debug messages git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@46 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- isdn.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'isdn.c') diff --git a/isdn.c b/isdn.c index a77b15b..d19f5b7 100644 --- a/isdn.c +++ b/isdn.c @@ -1,4 +1,4 @@ -/* $Id: isdn.c,v 1.5 2000/03/13 15:58:24 reinelt Exp $ +/* $Id: isdn.c,v 1.6 2000/04/15 11:56:35 reinelt Exp $ * * ISDN specific functions * @@ -20,6 +20,10 @@ * * * $Log: isdn.c,v $ + * Revision 1.6 2000/04/15 11:56:35 reinelt + * + * more debug messages + * * Revision 1.5 2000/03/13 15:58:24 reinelt * * release 0.9 @@ -59,6 +63,7 @@ #include #include +#include "debug.h" #include "isdn.h" #include "filter.h" @@ -128,12 +133,15 @@ int Isdn (int *rx, int *tx, int *usage) perror ("open(/dev/isdninfo) failed"); return -1; } + debug ("open (/proc/isdninfo)=%d\n", fd); } + if (ioctl(fd, IIOCGETCPS, &cps)) { perror("ioctl(IIOCGETCPS) failed"); fd=-1; return -1; } + cps_i=0; cps_o=0; for (i=0; i