diff options
author | Joe Perches <joe@perches.com> | 2017-03-04 08:13:11 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 14:25:57 +0100 |
commit | ae8784fcdc9bd3137fe65d6247129a19cab520b5 (patch) | |
tree | 026845b113d8a7fc76f4f867d1a36f07811fe3ca /drivers/staging/speakup/spk_priv.h | |
parent | staging: speakup:indentation should use tabs (diff) | |
download | linux-dev-ae8784fcdc9bd3137fe65d6247129a19cab520b5.tar.xz linux-dev-ae8784fcdc9bd3137fe65d6247129a19cab520b5.zip |
staging: speakup: Add __printf format/arg verification, fix fallout
Using __printf allows the compiler to verify formats and arguments.
Use it and fix the single misuse found.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/spk_priv.h')
-rw-r--r-- | drivers/staging/speakup/spk_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/speakup/spk_priv.h b/drivers/staging/speakup/spk_priv.h index d5aa41d82122..c78c2b6a2fc9 100644 --- a/drivers/staging/speakup/spk_priv.h +++ b/drivers/staging/speakup/spk_priv.h @@ -63,6 +63,7 @@ void spk_do_catch_up(struct spk_synth *synth); void spk_synth_flush(struct spk_synth *synth); int spk_synth_is_alive_nop(struct spk_synth *synth); int spk_synth_is_alive_restart(struct spk_synth *synth); +__printf(1, 2) void synth_printf(const char *buf, ...); int synth_request_region(unsigned long start, unsigned long n); int synth_release_region(unsigned long start, unsigned long n); |