Re: [PATCH 1/3] sh: dma-sysfs: use sysfs_emit{_at} in show functions

From: Geert Uytterhoeven

Date: Wed Apr 22 2026 - 03:01:12 EST


On Mon, 20 Apr 2026 at 17:28, Thorsten Blum <thorsten.blum@xxxxxxxxx> wrote:
> Replace sprintf() with sysfs_emit() and sysfs_emit_at() in sysfs show
> functions. sysfs_emit() and sysfs_emit_at() are preferred for formatting
> sysfs output because they provide safer bounds checking.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds