aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/remoteproc/remoteproc_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c
index 10a38258e31d..ea90a5643db3 100644
--- a/drivers/remoteproc/remoteproc_debugfs.c
+++ b/drivers/remoteproc/remoteproc_debugfs.c
@@ -82,7 +82,7 @@ static ssize_t rproc_state_read(struct file *filp, char __user *userbuf,
82 82
83 state = rproc->state > RPROC_LAST ? RPROC_LAST : rproc->state; 83 state = rproc->state > RPROC_LAST ? RPROC_LAST : rproc->state;
84 84
85 i = snprintf(buf, 30, "%.28s (%d)\n", rproc_state_string[state], 85 i = scnprintf(buf, 30, "%.28s (%d)\n", rproc_state_string[state],
86 rproc->state); 86 rproc->state);
87 87
88 return simple_read_from_buffer(userbuf, count, ppos, buf, i); 88 return simple_read_from_buffer(userbuf, count, ppos, buf, i);
@@ -103,7 +103,7 @@ static ssize_t rproc_name_read(struct file *filp, char __user *userbuf,
103 char buf[100]; 103 char buf[100];
104 int i; 104 int i;
105 105
106 i = snprintf(buf, sizeof(buf), "%.98s\n", rproc->name); 106 i = scnprintf(buf, sizeof(buf), "%.98s\n", rproc->name);
107 107
108 return simple_read_from_buffer(userbuf, count, ppos, buf, i); 108 return simple_read_from_buffer(userbuf, count, ppos, buf, i);
109} 109}