diff options
| author | Raghavendra Rao Ananta <rananta@google.com> | 2026-05-05 21:28:32 +0000 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-05-20 11:54:10 -0600 |
| commit | 91ee1738a9d358d3e0120a783cc052c275dea5e5 (patch) | |
| tree | f358fc22816cd416f6a7bbb25a4d81c848ed8524 /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | ff556bd98348896ba4bca1c34a9dc02f64f3d4b5 (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 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
