Skip to contentSkip to conversation

docs: usbmon: Fix a typo in the example

PATCH In review Karl Mehltretter 2 participants 2 messages Sep 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: usbmon: Fix a typo in the example

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
---
 Documentation/usb/usbmon.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/usb/usbmon.rst +1 -1
index 6d5ec1e62d09..667b84d3ae56 100644
@@ -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;
Signature · 1 line
2.53.0
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Karl Mehltretter

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

thanks.

Quoted 17 lines
---
 Documentation/usb/usbmon.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/usb/usbmon.rst +1 -1
index 6d5ec1e62d09..667b84d3ae56 100644
@@ -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;
Signature · 1 line
~Randy