[PATCH] USB: update usbmon, fix glued lines
This update contains one bug fix: some lines can come out truncated, because of the safety cutoff. This happened because I forgot to update the size when status packets began to be printed. The rest is: - Comments updates - Allow snooping with pkmap on x86_64, which is cache-coherent - Enlarge event buffers (certainly we can have a couple of pages) - Add event counter First touch upon usbmon for 2.6.18. Signed-off-by: Pete Zaitcev <zaitcev@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4bc203d997
commit
5b1c674d22
@@ -31,8 +31,8 @@ static int mon_stat_open(struct inode *inode, struct file *file)
|
||||
mbus = inode->u.generic_ip;
|
||||
|
||||
sp->slen = snprintf(sp->str, STAT_BUF_SIZE,
|
||||
"nreaders %d text_lost %u\n",
|
||||
mbus->nreaders, mbus->cnt_text_lost);
|
||||
"nreaders %d events %u text_lost %u\n",
|
||||
mbus->nreaders, mbus->cnt_events, mbus->cnt_text_lost);
|
||||
|
||||
file->private_data = sp;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user