|
From: Mattias A. <mat...@us...> - 2001-03-30 11:04:31
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
btmem.c 1.39 1.40=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
set buffer head to NULL after deallocating memory
added timestamp in 'buffer meter'
The diff of the modified file(s):
--- btmem.c 2001/03/23 13:21:57 1.39
+++ btmem.c 2001/03/30 11:04:27 1.40
@@ -134,6 +134,7 @@
/* FIXME - Check that the stack is not in use */
/* Deallocate memory area */
kfree(bt_buf.head);
+ bt_buf.head =3D NULL;
}
=20
/* Is run whenever buffer is empty */
@@ -516,7 +517,7 @@
i =3D ((count*BUFFERMETERRESOLUTION)/BT_BUF_SIZE);
memset(buffermeter, '|', i);
buffermeter[i+1] =3D 0; /* null terminate */=20
- printk("%s (%d)\n", buffermeter, count);
+ printk("%s [%s - %d bytes]\n", buffermeter, print_time(0), count);
}
=20
void show_bt_buf(bt_tx_buf *tx, s32 no_data)
|