diff options
author | Tomer Tayar <[email protected]> | 2023-02-17 12:56:48 +0200 |
---|---|---|
committer | Oded Gabbay <[email protected]> | 2023-03-15 13:29:15 +0200 |
commit | 28fbc058f2eec0e7e59cbeb5cce1d408d76c5965 (patch) | |
tree | 94f868b1f86f7c46c8f03c8edbd02ffb6e25fd62 /net/lapb/lapb_timer.c | |
parent | 087fe7c9c2b781b02124e9ef7fcf37d0ec982965 (diff) |
accel/habanalabs: use scnprintf() in print_device_in_use_info()
compose_device_in_use_info() was added to handle the snprintf() return
value in a single place.
However, the buffer size in print_device_in_use_info() is set such that
it would be enough for the max possible print, so
compose_device_in_use_info() is not really needed.
Moreover, scnprintf() can be used instead of snprintf(), to save the
check if the return value larger than the given size.
Cc: Stanislaw Gruszka <[email protected]>
Signed-off-by: Tomer Tayar <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Reviewed-by: Stanislaw Gruszka <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions