summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/st5481_d.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-10 18:54:58 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-17 10:58:22 -0800
commit9920239c90d5f6dadfb44325abf3568a5e3fd827 (patch)
tree5508c2643cc7cb3164c169539fbbab810de63bf9 /drivers/isdn/hisax/st5481_d.c
parent1f1aaf82825865a50cef0b4722607abb12aeee52 (diff)
downloadblackbird-op-linux-9920239c90d5f6dadfb44325abf3568a5e3fd827.tar.gz
blackbird-op-linux-9920239c90d5f6dadfb44325abf3568a5e3fd827.zip
drivers/isdn/hisax: Add printf format/argument verification and fix fallout
Add __attribute__((format... to several functins Make formats and arguments match. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hisax/st5481_d.c')
-rw-r--r--drivers/isdn/hisax/st5481_d.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/st5481_d.c b/drivers/isdn/hisax/st5481_d.c
index b7876b19fe73..44082637a09f 100644
--- a/drivers/isdn/hisax/st5481_d.c
+++ b/drivers/isdn/hisax/st5481_d.c
@@ -167,7 +167,8 @@ static struct FsmNode L1FnList[] __initdata =
{ST_L1_F8, EV_IND_RSY, l1_ignore},
};
-static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
+static __attribute__((format(printf, 2, 3)))
+void l1m_debug(struct FsmInst *fi, char *fmt, ...)
{
va_list args;
char buf[256];
@@ -269,7 +270,8 @@ static char *strDoutEvent[] =
"EV_DOUT_UNDERRUN",
};
-static void dout_debug(struct FsmInst *fi, char *fmt, ...)
+static __attribute__((format(printf, 2, 3)))
+void dout_debug(struct FsmInst *fi, char *fmt, ...)
{
va_list args;
char buf[256];
OpenPOWER on IntegriCloud