aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/speakup/main.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-03-04 08:13:11 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-09 14:25:57 +0100
commitae8784fcdc9bd3137fe65d6247129a19cab520b5 (patch)
tree026845b113d8a7fc76f4f867d1a36f07811fe3ca /drivers/staging/speakup/main.c
parentd5dc063ca2b1201781f973a7d55b21d000c48641 (diff)
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/main.c')
-rw-r--r--drivers/staging/speakup/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index c2f70ef5b9b3..5c174c98f108 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -775,7 +775,7 @@ static void say_line(struct vc_data *vc)
cp = buf;
while (*cp == SPACE)
cp++;
- synth_printf("%d, ", (cp - buf) + 1);
+ synth_printf("%zd, ", (cp - buf) + 1);
}
spk_punc_mask = spk_punc_masks[spk_reading_punc];
spkup_write(buf, i);