patch-2.4.23 linux-2.4.23/net/irda/qos.c
Next file: linux-2.4.23/net/irda/wrapper.c
Previous file: linux-2.4.23/net/irda/parameters.c
Back to the patch index
Back to the overall index
- Lines: 85
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/net/irda/qos.c
- Orig date:
2003-08-25 04:44:44.000000000 -0700
diff -urN linux-2.4.22/net/irda/qos.c linux-2.4.23/net/irda/qos.c
@@ -348,7 +348,7 @@
__u32 line_capacity;
int index;
- IRDA_DEBUG(2, __FUNCTION__ "()\n");
+ IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
/*
* Make sure the mintt is sensible.
@@ -374,8 +374,7 @@
if ((qos->baud_rate.value < 115200) &&
(qos->max_turn_time.value < 500))
{
- IRDA_DEBUG(0, __FUNCTION__
- "(), adjusting max turn time from %d to 500 ms\n",
+ IRDA_DEBUG(0, "%s(), adjusting max turn time from %d to 500 ms\n", __FUNCTION__,
qos->max_turn_time.value);
qos->max_turn_time.value = 500;
}
@@ -391,8 +390,7 @@
#ifdef CONFIG_IRDA_DYNAMIC_WINDOW
while ((qos->data_size.value > line_capacity) && (index > 0)) {
qos->data_size.value = data_sizes[index--];
- IRDA_DEBUG(2, __FUNCTION__
- "(), reducing data size to %d\n",
+ IRDA_DEBUG(2, "%s(), reducing data size to %d\n", __FUNCTION__,
qos->data_size.value);
}
#else /* Use method described in section 6.6.11 of IrLAP */
@@ -402,16 +400,14 @@
/* Must be able to send at least one frame */
if (qos->window_size.value > 1) {
qos->window_size.value--;
- IRDA_DEBUG(2, __FUNCTION__
- "(), reducing window size to %d\n",
+ IRDA_DEBUG(2, "%s(), reducing window size to %d\n", __FUNCTION__,
qos->window_size.value);
} else if (index > 1) {
qos->data_size.value = data_sizes[index--];
- IRDA_DEBUG(2, __FUNCTION__
- "(), reducing data size to %d\n",
+ IRDA_DEBUG(2, "%s(), reducing data size to %d\n", __FUNCTION__,
qos->data_size.value);
} else {
- WARNING(__FUNCTION__ "(), nothing more we can do!\n");
+ WARNING("%s(), nothing more we can do!\n", __FUNCTION__);
}
}
#endif /* CONFIG_IRDA_DYNAMIC_WINDOW */
@@ -545,7 +541,7 @@
if (get) {
param->pv.i = self->qos_rx.baud_rate.bits;
- IRDA_DEBUG(2, __FUNCTION__ "(), baud rate = 0x%02x\n",
+ IRDA_DEBUG(2, "%s(), baud rate = 0x%02x\n", __FUNCTION__,
param->pv.i);
} else {
/*
@@ -718,7 +714,7 @@
__u32 line_capacity;
int i,j;
- IRDA_DEBUG(2, __FUNCTION__ "(), speed=%d, max_turn_time=%d\n",
+ IRDA_DEBUG(2, "%s(), speed=%d, max_turn_time=%d\n", __FUNCTION__,
speed, max_turn_time);
i = value_index(speed, baud_rates, 10);
@@ -729,7 +725,7 @@
line_capacity = max_line_capacities[i][j];
- IRDA_DEBUG(2, __FUNCTION__ "(), line capacity=%d bytes\n",
+ IRDA_DEBUG(2, "%s(), line capacity=%d bytes\n", __FUNCTION__,
line_capacity);
return line_capacity;
@@ -743,7 +739,7 @@
irlap_min_turn_time_in_bytes(qos->baud_rate.value,
qos->min_turn_time.value);
- IRDA_DEBUG(2, __FUNCTION__ "(), requested line capacity=%d\n",
+ IRDA_DEBUG(2, "%s(), requested line capacity=%d\n", __FUNCTION__,
line_capacity);
return line_capacity;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)