Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66274
b: refs/heads/master
c: 0cc120b
h: refs/heads/master
v: v3
  • Loading branch information
Satyam Sharma authored and David S. Miller committed Oct 10, 2007
1 parent dbebfbe commit 8925a67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2b60881e28072109601c373abd1085499ccfef0
refs/heads/master: 0cc120bea1d4ba3893a26c70d271e89f928b8a97
18 changes: 9 additions & 9 deletions trunk/drivers/net/netconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ static void write_msg(struct console *con, const char *msg, unsigned int len)
int frag, left;
unsigned long flags;

local_irq_save(flags);

for (left = len; left;) {
frag = min(left, MAX_PRINT_CHUNK);
netpoll_send_udp(&np, msg, frag);
msg += frag;
left -= frag;
if (netif_running(np.dev)) {
local_irq_save(flags);
for (left = len; left;) {
frag = min(left, MAX_PRINT_CHUNK);
netpoll_send_udp(&np, msg, frag);
msg += frag;
left -= frag;
}
local_irq_restore(flags);
}

local_irq_restore(flags);
}

static struct console netconsole = {
Expand Down

0 comments on commit 8925a67

Please sign in to comment.