Christophe JAILLET e97eb65dd4 ata: sata_mv: Fix incorrect string length computation in mv_dump_mem()
snprintf() returns the "number of characters which *would* be generated for
the given input", not the size *really* generated.

In order to avoid too large values for 'o' (and potential negative values
for "sizeof(linebuf) o") use scnprintf() instead of snprintf().

Note that given the "w < 4" in the for loop, the buffer can NOT
overflow, but using the *right* function is always better.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
2023-09-11 15:13:35 +09:00
..
2023-08-02 17:37:06 +09:00
2023-03-23 10:29:26 +09:00
2023-09-09 12:01:33 -07:00
2023-02-22 13:35:51 -08:00
2023-04-26 15:39:25 -07:00
2023-08-02 17:37:06 +09:00
2023-08-02 17:37:06 +09:00
2023-08-02 17:37:06 +09:00