Messages in this thread | | | Date | Mon, 24 May 2004 11:34:28 -0700 | From | "Randy.Dunlap" <> | Subject | Re: [PATCH] typo in drivers/usb/class/usblp.c (resend) |
| |
On Mon, 24 May 2004 12:11:29 +0200 Benoît Dejean wrote:
| i think there's a typo error in usblp.c | | patch against 2.6.6 | | --- linux-2.6.6/drivers/usb/class/usblp.c 2004-04-04 | 05:36:26.000000000 | +0200 | +++ linux-2.6.6-modified/drivers/usb/class/usblp.c 2004-05-24 | 01:15:20.000000000 +0200 | @@ -305,7 +305,7 @@ | | if (~status & LP_PERRORP) | newerr = 3; | - if (status & LP_POUTPA) | + if (~status & LP_POUTPA) | newerr = 1; | if (~status & LP_PSELECD) | newerr = 2; | --
Why do you think that there is a typo? Did you check the USB printer specification?
LP_PERRORP == 0 means Error. LP_PSELECD == 0 means Not Selected (or means User disabled the printer). LP_POUTPA == 1 means Paper Empty.
See, LP_POUTPA has different error polarity than the other bits.
I don't see a problem. Are you experiencing some problem with a USB printer?
-- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |