Re: [PATCH 2/2] habanalabs: use scnprintf() in print_device_in_use_info()

2023-03-02 Thread Stanislaw Gruszka
On Thu, Mar 02, 2023 at 11:15:17AM +0200, Oded Gabbay wrote: > From: Tomer Tayar > > 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

[PATCH 2/2] habanalabs: use scnprintf() in print_device_in_use_info()

2023-03-02 Thread Oded Gabbay
From: Tomer Tayar 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,