Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264381
b: refs/heads/master
c: d512348
h: refs/heads/master
i:
  264379: 46477fd
v: v3
  • Loading branch information
Gao feng authored and David S. Miller committed Oct 19, 2011
1 parent b628f95 commit 1c6ffba
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 6230c9b4f8957c8938ee4cf2d03166d3c2dc89de
refs/heads/master: d5123480b1d6f7d1a5fe1a13520cef88fb5d4c84
5 changes: 5 additions & 0 deletions trunk/drivers/net/netconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ static ssize_t store_enabled(struct netconsole_target *nt,
return err;
if (enabled < 0 || enabled > 1)
return -EINVAL;
if (enabled == nt->enabled) {
printk(KERN_INFO "netconsole: network logging has already %s\n",
nt->enabled ? "started" : "stopped");
return -EINVAL;
}

if (enabled) { /* 1 */

Expand Down

0 comments on commit 1c6ffba

Please sign in to comment.