Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340711
b: refs/heads/master
c: c1a6085
h: refs/heads/master
i:
  340709: 14d9d1b
  340707: 548d12f
  340703: 480469b
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Nov 9, 2012
1 parent ec5a39c commit 19cf23f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e949b09b71d975a82f13ac88ce4ad338fed213da
refs/heads/master: c1a6085195e832a6d14ac1e6cf601b884c38c71f
6 changes: 6 additions & 0 deletions trunk/drivers/net/netconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ static char config[MAX_PARAM_LENGTH];
module_param_string(netconsole, config, MAX_PARAM_LENGTH, 0);
MODULE_PARM_DESC(netconsole, " netconsole=[src-port]@[src-ip]/[dev],[tgt-port]@<tgt-ip>/[tgt-macaddr]");

static bool oops_only = false;
module_param(oops_only, bool, 0600);
MODULE_PARM_DESC(oops_only, "Only log oops messages");

#ifndef MODULE
static int __init option_setup(char *opt)
{
Expand Down Expand Up @@ -683,6 +687,8 @@ static void write_msg(struct console *con, const char *msg, unsigned int len)
struct netconsole_target *nt;
const char *tmp;

if (oops_only && !oops_in_progress)
return;
/* Avoid taking lock and disabling interrupts unnecessarily */
if (list_empty(&target_list))
return;
Expand Down

0 comments on commit 19cf23f

Please sign in to comment.