[PATCH 2/3] net: b43: Convert sprintf/snprintf to sysfs_emit
Michael Büsch
m at bues.ch
Thu Mar 14 11:32:15 PDT 2024
On Thu, 14 Mar 2024 17:48:22 +0800
Li Zhijian <lizhijian at fujitsu.com> wrote:
> case B43legacy_INTERFMODE_NONE:
> - count = snprintf(buf, PAGE_SIZE, "0 (No Interference"
> - " Mitigation)\n");
> + count = sysfs_emit(buf, "0 (No Interference" " Mitigation)\n");
> break;
> if (wldev->short_preamble)
> - count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble"
> - " enabled)\n");
> + count = sysfs_emit(buf, "1 (Short Preamble" " enabled)\n");
> else
> - count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble"
> - " disabled)\n");
> + count = sysfs_emit(buf, "0 (Short Preamble" " disabled)\n");
>
Please either leave the line break in place, or remove the string continuation.
--
Michael Büsch
https://bues.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/b43-dev/attachments/20240314/4f218c68/attachment.sig>
More information about the b43-dev
mailing list