Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329774
b: refs/heads/master
c: ae768d5
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Ohad Ben-Cohen committed Sep 30, 2012
1 parent f19f1a6 commit b9d2780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ec4d02d9180f407c41f8310a13b34e473c671fbb
refs/heads/master: ae768d5fac18cd4b3ff51a4860b89fabba8ccc65
4 changes: 2 additions & 2 deletions trunk/drivers/remoteproc/remoteproc_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static ssize_t rproc_state_read(struct file *filp, char __user *userbuf,

state = rproc->state > RPROC_LAST ? RPROC_LAST : rproc->state;

i = snprintf(buf, 30, "%.28s (%d)\n", rproc_state_string[state],
i = scnprintf(buf, 30, "%.28s (%d)\n", rproc_state_string[state],
rproc->state);

return simple_read_from_buffer(userbuf, count, ppos, buf, i);
Expand All @@ -103,7 +103,7 @@ static ssize_t rproc_name_read(struct file *filp, char __user *userbuf,
char buf[100];
int i;

i = snprintf(buf, sizeof(buf), "%.98s\n", rproc->name);
i = scnprintf(buf, sizeof(buf), "%.98s\n", rproc->name);

return simple_read_from_buffer(userbuf, count, ppos, buf, i);
}
Expand Down

0 comments on commit b9d2780

Please sign in to comment.