ASoC: simple-card-utils: add __printf attribute
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Tue, 23 Aug 2016 08:51:22 +0000 (10:51 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 24 Aug 2016 15:27:04 +0000 (16:27 +0100)
commite5668caec5698f14f310fb06bb39595b21d2fe4a
treea2ab57a334169f19635d73ca654c9fc3796104c9
parent239486baee2bbefd81053cd4a168f90ce5c46fa2
ASoC: simple-card-utils: add __printf attribute

asoc_simple_card_set_dailink_name() uses devm_kvasprintf() to format
some of its arguments.  Adding a __printf attribute to this function
makes it possible to detect at compile-time errors related to format
strings.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h