Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267342
b: refs/heads/master
c: fd01a7a
h: refs/heads/master
v: v3
  • Loading branch information
Timur Tabi authored and Greg Kroah-Hartman committed Sep 26, 2011
1 parent ab9ad0f commit aebd960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 9cfb5c05fee914cc65d4706801f6bc424082b5f5
refs/heads/master: fd01a7a1bf6722e32efa679f15507148784af1f7
7 changes: 2 additions & 5 deletions trunk/drivers/tty/ehv_bytechan.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ static int ehv_bc_console_byte_channel_send(unsigned int handle, const char *s,
static void ehv_bc_console_write(struct console *co, const char *s,
unsigned int count)
{
unsigned int handle = (uintptr_t)co->data;
char s2[EV_BYTE_CHANNEL_MAX_BYTES];
unsigned int i, j = 0;
char c;
Expand All @@ -295,14 +294,14 @@ static void ehv_bc_console_write(struct console *co, const char *s,

s2[j++] = c;
if (j >= (EV_BYTE_CHANNEL_MAX_BYTES - 1)) {
if (ehv_bc_console_byte_channel_send(handle, s2, j))
if (ehv_bc_console_byte_channel_send(stdout_bc, s2, j))
return;
j = 0;
}
}

if (j)
ehv_bc_console_byte_channel_send(handle, s2, j);
ehv_bc_console_byte_channel_send(stdout_bc, s2, j);
}

/*
Expand Down Expand Up @@ -348,8 +347,6 @@ static int __init ehv_bc_console_init(void)
CONFIG_PPC_EARLY_DEBUG_EHV_BC_HANDLE);
#endif

ehv_bc_console.data = (void *)(uintptr_t)stdout_bc;

/* add_preferred_console() must be called before register_console(),
otherwise it won't work. However, we don't want to enumerate all the
byte channels here, either, since we only care about one. */
Expand Down

0 comments on commit aebd960

Please sign in to comment.