diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-16 10:44:27 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-16 10:44:27 -0400 |
| commit | b4b8f57965e007afbbb0175ea28f733723c5260b (patch) | |
| tree | 7f4aeda48ada35771ea3e63bbbb36e52c47aeb62 /drivers/net/netconsole.c | |
| parent | 424b00e2c0f0c38f2cf5331391742ec998f6d89f (diff) | |
| parent | 56f367bbfd5a7439961499ca6a2f0822d2074d83 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
[TCP]: Add return value indication to tcp_prune_ofo_queue().
PS3: gelic: fix the oops on the broken IE returned from the hypervisor
b43legacy: fix DMA mapping leakage
mac80211: remove message on receiving unexpected unencrypted frames
Update rt2x00 MAINTAINERS entry
Add rfkill to MAINTAINERS file
rfkill: Fix device type check when toggling states
b43legacy: Fix usage of struct device used for DMAing
ssb: Fix usage of struct device used for DMAing
MAINTAINERS: move to generic repository for iwlwifi
b43legacy: fix initvals loading on bcm4303
rtl8187: Add missing priv->vif assignments
netconsole: only set CON_PRINTBUFFER if the user specifies a netconsole
[CAN]: Update documentation of struct sockaddr_can
MAINTAINERS: isdn4linux@listserv.isdn4linux.de is subscribers-only
[TCP]: Fix never pruned tcp out-of-order queue.
[NET_SCHED] sch_api: fix qdisc_tree_decrease_qlen() loop
Diffstat (limited to 'drivers/net/netconsole.c')
| -rw-r--r-- | drivers/net/netconsole.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 501e451be911..665341e43055 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c | |||
| @@ -730,7 +730,7 @@ static void write_msg(struct console *con, const char *msg, unsigned int len) | |||
| 730 | 730 | ||
| 731 | static struct console netconsole = { | 731 | static struct console netconsole = { |
| 732 | .name = "netcon", | 732 | .name = "netcon", |
| 733 | .flags = CON_ENABLED | CON_PRINTBUFFER, | 733 | .flags = CON_ENABLED, |
| 734 | .write = write_msg, | 734 | .write = write_msg, |
| 735 | }; | 735 | }; |
| 736 | 736 | ||
| @@ -749,6 +749,9 @@ static int __init init_netconsole(void) | |||
| 749 | err = PTR_ERR(nt); | 749 | err = PTR_ERR(nt); |
| 750 | goto fail; | 750 | goto fail; |
| 751 | } | 751 | } |
| 752 | /* Dump existing printks when we register */ | ||
| 753 | netconsole.flags |= CON_PRINTBUFFER; | ||
| 754 | |||
| 752 | spin_lock_irqsave(&target_list_lock, flags); | 755 | spin_lock_irqsave(&target_list_lock, flags); |
| 753 | list_add(&nt->list, &target_list); | 756 | list_add(&nt->list, &target_list); |
| 754 | spin_unlock_irqrestore(&target_list_lock, flags); | 757 | spin_unlock_irqrestore(&target_list_lock, flags); |
