Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377231
b: refs/heads/master
c: 242ece2
h: refs/heads/master
i:
  377229: 87638ae
  377227: fd92044
  377223: 8177133
  377215: 8636674
v: v3
  • Loading branch information
Chen Gang authored and David S. Miller committed Jun 19, 2013
1 parent 43e3133 commit 3fe4dc3
Show file tree
Hide file tree
Showing 2 changed files with 8 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: dbebe0da64d0738a21221a7f9d29510b9f29d908
refs/heads/master: 242ece22f0bd90e237365e51c5bd90a21693d6c3
12 changes: 7 additions & 5 deletions trunk/arch/sparc/prom/bootstr_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,25 @@ prom_getbootargs(void)
return barg_buf;
}

switch(prom_vers) {
switch (prom_vers) {
case PROM_V0:
cp = barg_buf;
/* Start from 1 and go over fd(0,0,0)kernel */
for(iter = 1; iter < 8; iter++) {
for (iter = 1; iter < 8; iter++) {
arg = (*(romvec->pv_v0bootargs))->argv[iter];
if (arg == NULL)
break;
while(*arg != 0) {
while (*arg != 0) {
/* Leave place for space and null. */
if(cp >= barg_buf + BARG_LEN-2){
if (cp >= barg_buf + BARG_LEN - 2)
/* We might issue a warning here. */
break;
}
*cp++ = *arg++;
}
*cp++ = ' ';
if (cp >= barg_buf + BARG_LEN - 1)
/* We might issue a warning here. */
break;
}
*cp = 0;
break;
Expand Down

0 comments on commit 3fe4dc3

Please sign in to comment.