projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265f58f
)
net: fddi: skfp: smt: Remove extra parameters to vararg macro
author
Tom Rix
<trix@redhat.com>
Sun, 22 May 2022 13:36:27 +0000
(09:36 -0400)
committer
David S. Miller
<davem@davemloft.net>
Sun, 22 May 2022 22:05:56 +0000
(23:05 +0100)
cppcheck reports
[drivers/net/fddi/skfp/smt.c:750]: (warning) printf format string requires 0 parameters but 2 are given.
DB_SBAN is a vararg macro, like DB_ESSN. Remove the extra args and the nl.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fddi/skfp/smt.c
patch
|
blob
|
history
diff --git
a/drivers/net/fddi/skfp/smt.c
b/drivers/net/fddi/skfp/smt.c
index 72c31f0013ad8e2de69c03c387fcaa480ba86bd5..dd15af4e98c2f00bc852712e3fd3a287480f4a6b 100644
(file)
--- a/
drivers/net/fddi/skfp/smt.c
+++ b/
drivers/net/fddi/skfp/smt.c
@@
-747,7
+747,7
@@
void smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs)
#endif
#ifdef SBA
- DB_SBAN(2,
"SBA: RAF frame received\n",0,0
) ;
+ DB_SBAN(2,
"SBA: RAF frame received"
) ;
sba_raf_received_pack(smc,sm,fs) ;
#endif
break ;