Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 176826 Details for
Bug 251237
[post-2.6.18 regression] Kernel update to 2.6.26 caused usb-printer to stop after one page/job
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
yet another patch adding debug messages
papatch (text/plain), 2.67 KB, created by
George Kadianakis (RETIRED)
on 2008-12-30 02:31:07 UTC
(
hide
)
Description:
yet another patch adding debug messages
Filename:
MIME Type:
Creator:
George Kadianakis (RETIRED)
Created:
2008-12-30 02:31:07 UTC
Size:
2.67 KB
patch
obsolete
>Index: linux-2.6.27.8/drivers/usb/class/usblp.c >=================================================================== >--- linux-2.6.27.8.orig/drivers/usb/class/usblp.c >+++ linux-2.6.27.8/drivers/usb/class/usblp.c >@@ -259,9 +259,13 @@ static int usblp_ctrl_msg(struct usblp * > index = (usblp->ifnum<<8)|usblp->protocol[usblp->current_protocol].alt_setting; > } > >+ printk(KERN_INFO "usblp%d: in usblp_ctrl_msg: executing usb_control_msg\n", >+ usblp->minor); > retval = usb_control_msg(usblp->dev, > dir ? usb_rcvctrlpipe(usblp->dev, 0) : usb_sndctrlpipe(usblp->dev, 0), > request, type | dir | recip, value, index, buf, len, USBLP_CTL_TIMEOUT); >+ printk(KERN_INFO "usblp%d: in usblp_ctrl_msg: finished executing usb_control_msg\n", >+ usblp->minor); > dbg("usblp_control_msg: rq: 0x%02x dir: %d recip: %d value: %d idx: %d len: %#x result: %d", > request, !!dir, recip, value, index, len, retval); > return retval < 0 ? retval : 0; >@@ -346,8 +350,14 @@ static int usblp_check_status(struct usb > unsigned char status, newerr = 0; > int error; > >+ printk(KERN_INFO "usblp%d: in usblp_check_status: executing mutex_lock\n", >+ usblp->minor); > mutex_lock(&usblp->mut); >+ printk(KERN_INFO "usblp%d: in usblp_check_status: executing usblp_read_status\n", >+ usblp->minor); > if ((error = usblp_read_status(usblp, usblp->statusbuf)) < 0) { >+ printk(KERN_INFO "usblp%d: in usblp_check_status: executing mutex_unlock\n", >+ usblp->minor); > mutex_unlock(&usblp->mut); > if (printk_ratelimit()) > printk(KERN_ERR >@@ -658,7 +668,11 @@ static long usblp_ioctl(struct file *fil > switch (cmd) { > > case LPGETSTATUS: >+ printk(KERN_INFO "usblp%d: in usblp_ioctl: executing usblp_read_status\n", >+ usblp->minor); > if ((retval = usblp_read_status(usblp, usblp->statusbuf))) { >+ printk(KERN_INFO "usblp%d: in usblp_ioctl: finished executing usblp_read_status\n", >+ usblp->minor); > if (printk_ratelimit()) > printk(KERN_ERR "usblp%d:" > "failed reading printer status (%d)\n", >@@ -862,6 +876,8 @@ done: > */ > static int usblp_wwait(struct usblp *usblp, int nonblock) > { >+ printk(KERN_INFO "usblp%d: in usblp_wwait: starting execution of code\n", >+ usblp->minor); > DECLARE_WAITQUEUE(waita, current); > int rc; > int err = 0; >@@ -880,7 +896,11 @@ static int usblp_wwait(struct usblp *usb > > if (usblp->flags & LP_ABORT) { > if (schedule_timeout(msecs_to_jiffies(5000)) == 0) { >+ printk(KERN_INFO "usblp%d: in usblp_wwait: executing usblp_check_status\n", >+ usblp->minor); > err = usblp_check_status(usblp, err); >+ printk(KERN_INFO "usblp%d: in usblp_wwait: finish executing usblp_check_status\n", >+ usblp->minor); > if (err == 1) { /* Paper out */ > rc = -ENOSPC; > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251237
:
175515
|
175517
|
175519
|
175523
|
175577
|
175578
|
175714
|
175715
|
175729
|
175730
|
175909
|
176035
|
176036
|
176037
|
176039
|
176041
|
176043
|
176160
|
176327
|
176668
| 176826 |
176907
|
177124
|
177126
|
177145