Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308831
b: refs/heads/master
c: f623881
h: refs/heads/master
i:
  308829: 4060610
  308827: 6c53867
  308823: d461c25
  308815: 585f570
  308799: b260600
v: v3
  • Loading branch information
Ryota Ozaki authored and Linus Torvalds committed May 29, 2012
1 parent 7bb0106 commit 30911fa
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 23b9da55c5b0feb484bd5e8615f4eb1ce4169453
refs/heads/master: f62388187207bea83f1865d507bf892a1f9152c3
8 changes: 3 additions & 5 deletions trunk/drivers/base/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,9 @@ static ssize_t print_nodes_state(enum node_states state, char *buf)
{
int n;

n = nodelist_scnprintf(buf, PAGE_SIZE, node_states[state]);
if (n > 0 && PAGE_SIZE > n + 1) {
*(buf + n++) = '\n';
*(buf + n++) = '\0';
}
n = nodelist_scnprintf(buf, PAGE_SIZE-2, node_states[state]);
buf[n++] = '\n';
buf[n] = '\0';
return n;
}

Expand Down

0 comments on commit 30911fa

Please sign in to comment.