patch-2.3.24 linux/net/irda/discovery.c
Next file: linux/net/irda/ircomm/ircomm_core.c
Previous file: linux/net/irda/af_irda.c
Back to the patch index
Back to the overall index
- Lines: 72
- Date:
Mon Oct 25 20:49:42 1999
- Orig file:
v2.3.23/linux/net/irda/discovery.c
- Orig date:
Tue Aug 31 17:29:15 1999
diff -u --recursive --new-file v2.3.23/linux/net/irda/discovery.c linux/net/irda/discovery.c
@@ -6,7 +6,7 @@
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Tue Apr 6 15:33:50 1999
- * Modified at: Mon Aug 23 09:48:40 1999
+ * Modified at: Sat Oct 9 17:11:31 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
* Modified at: Fri May 28 3:11 CST 1999
* Modified by: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
@@ -32,7 +32,6 @@
#include <linux/string.h>
#include <linux/socket.h>
-#include <linux/irda.h>
#include <net/irda/irda.h>
#include <net/irda/irlmp.h>
@@ -78,7 +77,7 @@
/* Insert the new and updated version */
- hashbin_insert(cachelog, (QUEUE *) new, new->daddr, NULL);
+ hashbin_insert(cachelog, (queue_t *) new, new->daddr, NULL);
spin_unlock_irqrestore(&irlmp->lock, flags);
}
@@ -93,7 +92,7 @@
{
discovery_t *discovery;
- DEBUG(4, __FUNCTION__ "()\n");
+ IRDA_DEBUG(4, __FUNCTION__ "()\n");
/*
* If log is missing this means that IrLAP was unable to perform the
@@ -126,7 +125,7 @@
{
discovery_t *discovery, *curr;
- DEBUG(4, __FUNCTION__ "()\n");
+ IRDA_DEBUG(4, __FUNCTION__ "()\n");
discovery = (discovery_t *) hashbin_get_first(log);
while (discovery != NULL) {
@@ -160,10 +159,10 @@
discovery = (discovery_t *) hashbin_get_first(log);
while (discovery != NULL) {
- DEBUG(0, "Discovery:\n");
- DEBUG(0, " daddr=%08x\n", discovery->daddr);
- DEBUG(0, " saddr=%08x\n", discovery->saddr);
- DEBUG(0, " nickname=%s\n", discovery->nickname);
+ IRDA_DEBUG(0, "Discovery:\n");
+ IRDA_DEBUG(0, " daddr=%08x\n", discovery->daddr);
+ IRDA_DEBUG(0, " saddr=%08x\n", discovery->saddr);
+ IRDA_DEBUG(0, " nickname=%s\n", discovery->nickname);
discovery = (discovery_t *) hashbin_get_next(log);
}
@@ -186,9 +185,9 @@
/* Look at all discoveries for that link */
d = (discovery_t *) hashbin_get_first(cachelog);
while (d != NULL) {
- DEBUG(1, "Discovery:\n");
- DEBUG(1, " daddr=%08x\n", d->daddr);
- DEBUG(1, " nickname=%s\n", d->nickname);
+ IRDA_DEBUG(1, "Discovery:\n");
+ IRDA_DEBUG(1, " daddr=%08x\n", d->daddr);
+ IRDA_DEBUG(1, " nickname=%s\n", d->nickname);
if (strcmp(name, d->nickname) == 0) {
*saddr = d->saddr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)