docs: usbmon: Fix a typo in the example
Subsystems (2)
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
Signed-off-by Karl Mehltretter <[email protected]>
--- Documentation/usb/usbmon.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/usb/usbmon.rst +1 -1
@@ -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
Quoted 7 lines · Karl Mehltretter
struct
ubsmon_packetdoes not exist; the name is structusbmon_packet.Use struct
usbmon_packet.Fixes 6f23ee1fefdc ("USB: add binary API to usbmon")Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>
Acked-by Randy Dunlap <[email protected]>
thanks.
Quoted 17 lines
--- Documentation/usb/usbmon.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/usb/usbmon.rst +1
-1@@ -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