Skip to content

Commit

Permalink
ohci-hub: fix typo in dbg_port macro
Browse files Browse the repository at this point in the history
The "dbg_port" macro uses the "outside" parameter (="temp") instead of
the parameters (="value") given in the macro. As the macro can look
outside its definition this causes no direct problem.

Signed-off-by: Jelle Martijn Kok <jmkok@youcom.nl>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jelle Martijn Kok authored and Greg Kroah-Hartman committed Feb 10, 2017
1 parent 54a2190 commit baa42a3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions drivers/usb/host/ohci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
ohci_dbg (hc, \
"%s roothub.portstatus [%d] " \
"= 0x%08x%s%s%s%s%s%s%s%s%s%s%s%s\n", \
label, num, temp, \
(temp & RH_PS_PRSC) ? " PRSC" : "", \
(temp & RH_PS_OCIC) ? " OCIC" : "", \
(temp & RH_PS_PSSC) ? " PSSC" : "", \
(temp & RH_PS_PESC) ? " PESC" : "", \
(temp & RH_PS_CSC) ? " CSC" : "", \
label, num, value, \
(value & RH_PS_PRSC) ? " PRSC" : "", \
(value & RH_PS_OCIC) ? " OCIC" : "", \
(value & RH_PS_PSSC) ? " PSSC" : "", \
(value & RH_PS_PESC) ? " PESC" : "", \
(value & RH_PS_CSC) ? " CSC" : "", \
\
(temp & RH_PS_LSDA) ? " LSDA" : "", \
(temp & RH_PS_PPS) ? " PPS" : "", \
(temp & RH_PS_PRS) ? " PRS" : "", \
(temp & RH_PS_POCI) ? " POCI" : "", \
(temp & RH_PS_PSS) ? " PSS" : "", \
(value & RH_PS_LSDA) ? " LSDA" : "", \
(value & RH_PS_PPS) ? " PPS" : "", \
(value & RH_PS_PRS) ? " PRS" : "", \
(value & RH_PS_POCI) ? " POCI" : "", \
(value & RH_PS_PSS) ? " PSS" : "", \
\
(temp & RH_PS_PES) ? " PES" : "", \
(temp & RH_PS_CCS) ? " CCS" : "" \
(value & RH_PS_PES) ? " PES" : "", \
(value & RH_PS_CCS) ? " CCS" : "" \
);

/*-------------------------------------------------------------------------*/
Expand Down

0 comments on commit baa42a3

Please sign in to comment.