diff options
| author | Vivek BalachandharTN <vivek.balachandhar@gmail.com> | 2025-10-15 07:45:02 +0000 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-10-20 15:22:21 +0200 |
| commit | 4929ba5c5bd75dc28971f0909902e4624e92ad59 (patch) | |
| tree | 3358c86f647ee77aec800518b116266cf3784592 /scripts/gdb/linux/bpf.py | |
| parent | 27cecacbe88f22aa2e0454cc516d64a55e9002d4 (diff) | |
dm: sysfs: use sysfs_emit() in dm-sysfs.c
Replace sprintf()+strlen() with sysfs_emit(), the preferred helper for
sysfs show() routines. sysfs_emit() returns the number of bytes written,
guarantees NUL-termination, and clamps to PAGE_SIZE-1.
Reference: Documentation/filesystems/sysfs.rst.
No functional change intended.
Signed-off-by: Vivek BalachandharTN <vivek.balachandhar@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/bpf.py')
0 files changed, 0 insertions, 0 deletions
