* [PATCH] docs: usbmon: Fix a typo in the example
@ 2026-09-05 7:56 Karl Mehltretter
2026-09-05 21:16 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Karl Mehltretter @ 2026-09-05 7:56 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Karl Mehltretter, Pete Zaitcev, linux-usb, Jonathan Corbet,
linux-doc
struct ubsmon_packet does not exist; the name is struct usbmon_packet.
Use struct usbmon_packet.
Fixes: 6f23ee1fefdc ("USB: add binary API to usbmon")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
Documentation/usb/usbmon.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/usb/usbmon.rst b/Documentation/usb/usbmon.rst
index 6d5ec1e62d09..667b84d3ae56 100644
--- a/Documentation/usb/usbmon.rst
+++ b/Documentation/usb/usbmon.rst
@@ -361,7 +361,7 @@ Then, execute a loop similar to the one written in pseudo-code below::
ioctl(fd, MON_IOCX_MFETCH, &fetch); // Process errors, too
nflush = fetch.nfetch; // This many packets to flush when done
for (i = 0; i < nflush; i++) {
- hdr = (struct ubsmon_packet *) &mmap_area[vec[i]];
+ hdr = (struct usbmon_packet *) &mmap_area[vec[i]];
if (hdr->type == '@') // Filler packet
continue;
caddr_t data = &mmap_area[vec[i]] + 64;
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] docs: usbmon: Fix a typo in the example
2026-09-05 7:56 [PATCH] docs: usbmon: Fix a typo in the example Karl Mehltretter
@ 2026-09-05 21:16 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2026-09-05 21:16 UTC (permalink / raw)
To: Karl Mehltretter, Greg Kroah-Hartman
Cc: Pete Zaitcev, linux-usb, Jonathan Corbet, linux-doc
On 9/5/26 12:56 AM, Karl Mehltretter wrote:
> struct ubsmon_packet does not exist; the name is struct usbmon_packet.
>
> Use struct usbmon_packet.
>
> Fixes: 6f23ee1fefdc ("USB: add binary API to usbmon")
> Assisted-by: LLM
> Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
thanks.
> ---
> Documentation/usb/usbmon.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/usb/usbmon.rst b/Documentation/usb/usbmon.rst
> index 6d5ec1e62d09..667b84d3ae56 100644
> --- a/Documentation/usb/usbmon.rst
> +++ b/Documentation/usb/usbmon.rst
> @@ -361,7 +361,7 @@ Then, execute a loop similar to the one written in pseudo-code below::
> ioctl(fd, MON_IOCX_MFETCH, &fetch); // Process errors, too
> nflush = fetch.nfetch; // This many packets to flush when done
> for (i = 0; i < nflush; i++) {
> - hdr = (struct ubsmon_packet *) &mmap_area[vec[i]];
> + hdr = (struct usbmon_packet *) &mmap_area[vec[i]];
> if (hdr->type == '@') // Filler packet
> continue;
> caddr_t data = &mmap_area[vec[i]] + 64;
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-05 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-05 7:56 [PATCH] docs: usbmon: Fix a typo in the example Karl Mehltretter
2026-09-05 21:16 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox