Re: [PATCH] Fix snprintf format warnings during 'alsa' kselftest compilation

From: Ivan Orlov
Date: Thu Feb 23 2023 - 15:15:04 EST


On 23.02.2023 18:05, Mark Brown wrote:

What warnings are you seeing in what configuration (arch, toolchain, any
custom options...)? I'm not seeing anything when I test. Are these
perhaps architecture dependent warnings?

Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.

Thank you for the review! I will follow the common subject lines style in the future.

I compiled the test via gcc 11.3.0 without any custom options, the arch is x86_64. There were five warnings during the test compilation, and all of them were caused by incorrect format in 'snprintf' function calls. As I know, using incorrect format in 'snprintf' creates an undefined behavior. Maybe there is a point to fix it?