diff options
author | Erik Hugne <erik.hugne@ericsson.com> | 2012-06-29 00:16:37 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-07-13 19:24:44 -0400 |
commit | 2cf8aa19fe8bec578b707daa383ebff80e3f81a1 (patch) | |
tree | bd800510d0e01d441e25dd476228462106eaa9ea /net/tipc/config.c | |
parent | f705ab956b3a0377181c9d73b235ad5bf4020937 (diff) |
tipc: use standard printk shortcut macros (pr_err etc.)
All messages should go directly to the kernel log. The TIPC
specific error, warning, info and debug trace macro's are
removed and all references replaced with pr_err, pr_warn,
pr_info and pr_debug.
Commonly used sub-strings are explicitly declared as a const
char to reduce .text size.
Note that this means the debug messages (changed to pr_debug),
are now enabled through dynamic debugging, instead of a TIPC
specific Kconfig option (TIPC_DEBUG). The latter will be
phased out completely
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
[PG: use pr_fmt as suggested by Joe Perches <joe@perches.com>]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/config.c')
-rw-r--r-- | net/tipc/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c index c5712a343810..7978fdd99299 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c | |||
@@ -432,7 +432,7 @@ static void cfg_named_msg_event(void *userdata, | |||
432 | if ((size < sizeof(*req_hdr)) || | 432 | if ((size < sizeof(*req_hdr)) || |
433 | (size != TCM_ALIGN(ntohl(req_hdr->tcm_len))) || | 433 | (size != TCM_ALIGN(ntohl(req_hdr->tcm_len))) || |
434 | (ntohs(req_hdr->tcm_flags) != TCM_F_REQUEST)) { | 434 | (ntohs(req_hdr->tcm_flags) != TCM_F_REQUEST)) { |
435 | warn("Invalid configuration message discarded\n"); | 435 | pr_warn("Invalid configuration message discarded\n"); |
436 | return; | 436 | return; |
437 | } | 437 | } |
438 | 438 | ||
@@ -478,7 +478,7 @@ int tipc_cfg_init(void) | |||
478 | return 0; | 478 | return 0; |
479 | 479 | ||
480 | failed: | 480 | failed: |
481 | err("Unable to create configuration service\n"); | 481 | pr_err("Unable to create configuration service\n"); |
482 | return res; | 482 | return res; |
483 | } | 483 | } |
484 | 484 | ||
@@ -494,7 +494,7 @@ void tipc_cfg_reinit(void) | |||
494 | seq.lower = seq.upper = tipc_own_addr; | 494 | seq.lower = seq.upper = tipc_own_addr; |
495 | res = tipc_publish(config_port_ref, TIPC_ZONE_SCOPE, &seq); | 495 | res = tipc_publish(config_port_ref, TIPC_ZONE_SCOPE, &seq); |
496 | if (res) | 496 | if (res) |
497 | err("Unable to reinitialize configuration service\n"); | 497 | pr_err("Unable to reinitialize configuration service\n"); |
498 | } | 498 | } |
499 | 499 | ||
500 | void tipc_cfg_stop(void) | 500 | void tipc_cfg_stop(void) |