]> git.baikalelectronics.ru Git - kernel.git/commit
serial: samsung: Neaten dbg uses
authorJoe Perches <joe@perches.com>
Tue, 20 May 2014 21:05:50 +0000 (14:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 19:27:22 +0000 (12:27 -0700)
commit3f98597a2deed928690dc349766282724849dd1b
tree35972365d5a1bc21456bce200ddae728ab90a831
parentde1db5cf9f762a9bd1a002e38299503803f9ad3b
serial: samsung: Neaten dbg uses

Add format and argument checking and fix misuses in the dbg macro.

Add __printf
Use %pR for resource
Add #include guard to samsung.h
Move static functions from .h to .c
Use vscnprintf instead of length unguarded vsprintf

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c
drivers/tty/serial/samsung.h