diff options
| author | 2026-05-05 21:28:32 +0000 | |
|---|---|---|
| committer | 2026-05-20 11:54:10 -0600 | |
| commit | 91ee1738a9d358d3e0120a783cc052c275dea5e5 (patch) | |
| tree | f358fc22816cd416f6a7bbb25a4d81c848ed8524 /tools/lib/python/kdoc/python_version.py | |
| parent | vfio: selftests: Add -Wall and -Werror to the Makefile (diff) | |
vfio: selftests: Introduce snprintf_assert()
Introduce snprintf_assert() to protect the users of snprintf() to fail
if the requested operation was truncated due to buffer limits. VFIO
tests and libraries, including a new sysfs library that will be introduced
by an upcoming patch, rely quite heavily on snprintf()s to build PCI
sysfs paths. Having a protection against this will be helpful to prevent
false test failures.
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Vipin Sharma <vipinsh@google.com>
Tested-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20260505212838.1698034-3-rananta@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
