mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
net: l2tp: Standardize logging styles
Use more current logging styles. Add pr_fmt to prefix output appropriately. Convert printks to pr_<level>. Convert PRINTK macros to new l2tp_<level> macros. Neaten some <foo>_refcount debugging macros. Use print_hex_dump_bytes instead of hand-coded loops. Coalesce formats and align arguments. Some KERN_DEBUG output is not now emitted unless dynamic_debugging is enabled. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
028940342a
commit
a4ca44fa57
8 changed files with 213 additions and 221 deletions
|
@ -9,6 +9,8 @@
|
|||
* 2 of the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/socket.h>
|
||||
|
@ -325,11 +327,11 @@ static int __init l2tp_debugfs_init(void)
|
|||
if (tunnels == NULL)
|
||||
rc = -EIO;
|
||||
|
||||
printk(KERN_INFO "L2TP debugfs support\n");
|
||||
pr_info("L2TP debugfs support\n");
|
||||
|
||||
out:
|
||||
if (rc)
|
||||
printk(KERN_WARNING "l2tp debugfs: unable to init\n");
|
||||
pr_warn("unable to init\n");
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue