summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorUtkarsh Singh <utkarsh.singh.em@gmail.com>2025-09-22 23:22:22 +0530
committerAndreas Gruenbacher <agruenba@redhat.com>2025-10-31 21:00:42 +0000
commit02c03021e2fced59b3b5b200fdd00018725d4ee2 (patch)
tree346649bc7a3b872c1cc3e5b3fc476b6b4a2db84c /rust/kernel
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa (diff)
gfs2/sysfs: Replace sprintf/snprintf with sysfs_emit
Documentation/filesystems/sysfs.rst mentions that show() should only use sysfs_emit() or sysfs_emit_at() when formatting values returned to user space. This patch updates the GFS2 sysfs interface accordingly. It replaces uses of sprintf() and snprintf() in all *_show() functions with sysfs_emit() to align with current kernel sysfs API best practices. It also updates the TUNE_ATTR_2 macro to use sysfs_emit() instead of snprintf(). Signed-off-by: Utkarsh Singh <utkarsh.singh.em@gmail.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions