Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38214
b: refs/heads/master
c: 6c6a233
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Shtylyov authored and Russell King committed Oct 1, 2006
1 parent 2ec597d commit 7a7f291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: a4b775735c0dff5a8d59a877ff0033526b469116
refs/heads/master: 6c6a2334a1e8af7c3eaab992732825fa9ade77cf
8 changes: 4 additions & 4 deletions trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1662,16 +1662,16 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i)
struct uart_port *port = state->port;
char stat_buf[32];
unsigned int status;
int ret;
int mmio, ret;

if (!port)
return 0;

mmio = port->iotype >= UPIO_MEM;
ret = sprintf(buf, "%d: uart:%s %s%08lX irq:%d",
port->line, uart_type(port),
port->iotype == UPIO_MEM ? "mmio:0x" : "port:",
port->iotype == UPIO_MEM ? port->mapbase :
(unsigned long) port->iobase,
mmio ? "mmio:0x" : "port:",
mmio ? port->mapbase : (unsigned long) port->iobase,
port->irq);

if (port->type == PORT_UNKNOWN) {
Expand Down

0 comments on commit 7a7f291

Please sign in to comment.