summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorIan Bridges <icb@fastmail.org>2026-07-29 09:46:15 -0500
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-08-13 22:15:22 -0400
commit22d4cbf6f7509f0aab58d60d488a0082916a2fb0 (patch)
tree20d477b167439fd2db3a9743c44a7d6ed9e95342 /scripts/objdiff
parent07f46a9f8964b91d56951ef7f74c551af0eddeac (diff)
downloadlinux-next-22d4cbf6f7509f0aab58d60d488a0082916a2fb0.tar.gz
linux-next-22d4cbf6f7509f0aab58d60d488a0082916a2fb0.zip
scsi: lpfc: Replace strlcat() with seq_buf in lpfc_rx_monitor_report()
In preparation for removing the strlcat() API[1], replace its use in lpfc_rx_monitor_report(). The function accumulates one line per ring entry, which is what seq_buf is for. seq_buf tracks the write position, so the per entry strlen() rescans of the destination are gone. Each record is still formatted into the tmp buffer. seq_buf_puts() appends it only when it fits whole, so the output keeps ending at the last complete record. The loop still stops on overflow without consuming the current entry, and the returned count and the ring head keep their old meaning. The produced bytes are unchanged. Link: https://github.com/KSPP/linux/issues/370 [1] Signed-off-by: Ian Bridges <icb@fastmail.org> Link: https://patch.msgid.link/20260729144617.1388646-4-icb@fastmail.org Reviewed-by: Nigel Kirkland <nigel.kirkland@broadcom.com> Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions