]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite4ac92df2791c1a3912643e9547941f430fda726
tree35972365d5a1bc21456bce200ddae728ab90a831
parent10389e66231f1abdf27caa61b822b59dc2fd86b8
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