Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182075
b: refs/heads/master
c: 9feb836
h: refs/heads/master
i:
  182073: 48a5fcf
  182071: 2ba4cf4
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Feb 27, 2010
1 parent f428deb commit 4ea9b38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 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: e0e53dee69e07e9446eb16ceabd55a1116611696
refs/heads/master: 9feb8367999265b8a300cb96e7a66f79b651c820
22 changes: 6 additions & 16 deletions trunk/arch/mips/ar7/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,12 @@ char * __init prom_getcmdline(void)

static void __init ar7_init_cmdline(int argc, char *argv[])
{
char *cp;
int actr;

actr = 1; /* Always ignore argv[0] */
int i;

cp = &(arcs_cmdline[0]);
while (actr < argc) {
strcpy(cp, argv[actr]);
cp += strlen(argv[actr]);
*cp++ = ' ';
actr++;
}
if (cp != &(arcs_cmdline[0])) {
/* get rid of trailing space */
--cp;
*cp = '\0';
for (i = 1; i < argc; i++) {
strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE);
if (i < (argc - 1))
strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
}
}

Expand Down Expand Up @@ -250,7 +240,7 @@ static void __init console_config(void)
else
sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity,
bits);
strcat(prom_getcmdline(), console_string);
strlcat(arcs_cmdline, console_string, COMMAND_LINE_SIZE);
#endif
}

Expand Down

0 comments on commit 4ea9b38

Please sign in to comment.