diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-01-24 06:47:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-01-24 06:47:48 -0500 |
commit | befddb21c845f8fb49e637997891ef97c6a869dc (patch) | |
tree | 0e7629123184f2dd50291ad6d477b894175f0f26 /drivers/net/netconsole.c | |
parent | e716efde75267eab919cdb2bef5b2cb77f305326 (diff) | |
parent | 7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff) |
Merge tag 'v3.8-rc4' into irq/core
Merge Linux 3.8-rc4 before pulling in new commits - we were on an old v3.7 base.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/net/netconsole.c')
-rw-r--r-- | drivers/net/netconsole.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index b3321129a83c..6989ebe2bc79 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c | |||
@@ -56,6 +56,10 @@ static char config[MAX_PARAM_LENGTH]; | |||
56 | module_param_string(netconsole, config, MAX_PARAM_LENGTH, 0); | 56 | module_param_string(netconsole, config, MAX_PARAM_LENGTH, 0); |
57 | MODULE_PARM_DESC(netconsole, " netconsole=[src-port]@[src-ip]/[dev],[tgt-port]@<tgt-ip>/[tgt-macaddr]"); | 57 | MODULE_PARM_DESC(netconsole, " netconsole=[src-port]@[src-ip]/[dev],[tgt-port]@<tgt-ip>/[tgt-macaddr]"); |
58 | 58 | ||
59 | static bool oops_only = false; | ||
60 | module_param(oops_only, bool, 0600); | ||
61 | MODULE_PARM_DESC(oops_only, "Only log oops messages"); | ||
62 | |||
59 | #ifndef MODULE | 63 | #ifndef MODULE |
60 | static int __init option_setup(char *opt) | 64 | static int __init option_setup(char *opt) |
61 | { | 65 | { |
@@ -683,6 +687,8 @@ static void write_msg(struct console *con, const char *msg, unsigned int len) | |||
683 | struct netconsole_target *nt; | 687 | struct netconsole_target *nt; |
684 | const char *tmp; | 688 | const char *tmp; |
685 | 689 | ||
690 | if (oops_only && !oops_in_progress) | ||
691 | return; | ||
686 | /* Avoid taking lock and disabling interrupts unnecessarily */ | 692 | /* Avoid taking lock and disabling interrupts unnecessarily */ |
687 | if (list_empty(&target_list)) | 693 | if (list_empty(&target_list)) |
688 | return; | 694 | return; |