usb: gadget: f_uac2: Fix spelling mistake "maxpctksize" -> "maxpcktsize"
Subsystems (2)
PATCH 1/1 usb: gadget: f_uac2: Fix spelling mistake "maxpctksize" -> "maxpcktsize"
There is a spelling mistake in a deb_dbg message. Fix it.
--- drivers/usb/gadget/function/f_uac2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/function/f_uac2.c +1 -1
@@ -755,7 +755,7 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_oif (max_size_bw <= max_size_ep)dev_dbg (dev, -"%s %s: Would use maxpctksize %d and bInterval %d\n" , +"%s %s: Would use maxpcktsize %d and bInterval %d\n" , speed_names[speed], dir, max_size_bw, bint);else { dev_warn(dev,
Signature · 1 line
2.34.1
Quoted 1 line · Colin Ian King
There is a spelling mistake in a
deb_dbgmessage. Fix it.
[]
drivers/usb/gadget/function/f_uac2.c
Quoted 1 line
drivers/usb/gadget/function/f_uac2.c +0
-0
[]
drivers/usb/gadget/function/f_uac2.c static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_o · line 758
Quoted 6 lines
drivers/usb/gadget/function/f_uac2.c +1
-1@@ -755,7 +755,7 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_oif (max_size_bw <= max_size_ep) dev_dbg(dev, - "%s %s: Would use maxpctksize %d and bInterval %d\n", + "%s %s: Would use maxpcktsize %d and bInterval %d\n",
why not just spell it out? or use wMaxPacketSize from the uapi include?
--- drivers/usb/gadget/function/f_uac2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/usb/gadget/function/f_uac2.c +3 -3
@@ -755,12 +755,12 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_oif (max_size_bw <= max_size_ep)dev_dbg (dev, -"%s %s: Would use maxpctksize %d and bInterval %d\n" , +"%s %s: Would use wMaxPacketSize %d and bInterval %d\n" , speed_names[speed], dir, max_size_bw, bint);else {dev_warn (dev, -"%s %s: Req. maxpcktsize %d at bInterval %d > max ISOC %d, may drop data!\n" , - speed_names[speed], dir, max_size_bw, bint, max_size_ep); +"%s %s: Req. wMaxPacketSize %d at bInterval %d > max ISOC %d, may drop data!\n" , + speed_names[speed], dir, max_size_bw, bint, max_size_ep); max_size_bw = max_size_ep; }
Dne 02. 02. 22 v 10:57 Joe Perches napsal(a):
Quoted 5 lines · Colin Ian King
Quoted 1 line
There is a spelling mistake in a
deb_dbgmessage. Fix it.[]
drivers/usb/gadget/function/f_uac2.c
Quoted 1 line
drivers/usb/gadget/function/f_uac2.c +0
-0[]
Quoted 8 lines
drivers/usb/gadget/function/f_uac2.c static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_o · line 758
Quoted 6 lines
drivers/usb/gadget/function/f_uac2.c +1
-1@@ -755,7 +755,7 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_oif (max_size_bw <= max_size_ep) dev_dbg(dev, - "%s %s: Would use maxpctksize %d and bInterval %d\n", + "%s %s: Would use maxpcktsize %d and bInterval %d\n",why not just spell it out? or use wMaxPacketSize from the uapi include?
My reason for the ugly abbreviation (prone to misspelling for which I apologize) was to keep the line length limit. I would be happy to see wMaxPacketSize instead :-)
Pavel.
Quoted 26 lines
--- drivers/usb/gadget/function/f_uac2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/usb/gadget/function/f_uac2.c +3
-3@@ -755,12 +755,12 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_oif (max_size_bw <= max_size_ep)dev_dbg (dev, -"%s %s: Would use maxpctksize %d and bInterval %d\n" , +"%s %s: Would use wMaxPacketSize %d and bInterval %d\n" , speed_names[speed], dir, max_size_bw, bint);else {dev_warn (dev, -"%s %s: Req. maxpcktsize %d at bInterval %d > max ISOC %d, may drop data!\n" , - speed_names[speed], dir, max_size_bw, bint, max_size_ep); +"%s %s: Req. wMaxPacketSize %d at bInterval %d > max ISOC %d, may drop data!\n" , + speed_names[speed], dir, max_size_bw, bint, max_size_ep); max_size_bw = max_size_ep; }