diff options
Diffstat (limited to 'lib/test_firmware.c')
-rw-r--r-- | lib/test_firmware.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/test_firmware.c b/lib/test_firmware.c index 7222093ee00b..b5487ed829d7 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c | |||
@@ -223,30 +223,30 @@ static ssize_t config_show(struct device *dev, | |||
223 | 223 | ||
224 | mutex_lock(&test_fw_mutex); | 224 | mutex_lock(&test_fw_mutex); |
225 | 225 | ||
226 | len += snprintf(buf, PAGE_SIZE, | 226 | len += scnprintf(buf, PAGE_SIZE - len, |
227 | "Custom trigger configuration for: %s\n", | 227 | "Custom trigger configuration for: %s\n", |
228 | dev_name(dev)); | 228 | dev_name(dev)); |
229 | 229 | ||
230 | if (test_fw_config->name) | 230 | if (test_fw_config->name) |
231 | len += snprintf(buf+len, PAGE_SIZE, | 231 | len += scnprintf(buf+len, PAGE_SIZE - len, |
232 | "name:\t%s\n", | 232 | "name:\t%s\n", |
233 | test_fw_config->name); | 233 | test_fw_config->name); |
234 | else | 234 | else |
235 | len += snprintf(buf+len, PAGE_SIZE, | 235 | len += scnprintf(buf+len, PAGE_SIZE - len, |
236 | "name:\tEMTPY\n"); | 236 | "name:\tEMTPY\n"); |
237 | 237 | ||
238 | len += snprintf(buf+len, PAGE_SIZE, | 238 | len += scnprintf(buf+len, PAGE_SIZE - len, |
239 | "num_requests:\t%u\n", test_fw_config->num_requests); | 239 | "num_requests:\t%u\n", test_fw_config->num_requests); |
240 | 240 | ||
241 | len += snprintf(buf+len, PAGE_SIZE, | 241 | len += scnprintf(buf+len, PAGE_SIZE - len, |
242 | "send_uevent:\t\t%s\n", | 242 | "send_uevent:\t\t%s\n", |
243 | test_fw_config->send_uevent ? | 243 | test_fw_config->send_uevent ? |
244 | "FW_ACTION_HOTPLUG" : | 244 | "FW_ACTION_HOTPLUG" : |
245 | "FW_ACTION_NOHOTPLUG"); | 245 | "FW_ACTION_NOHOTPLUG"); |
246 | len += snprintf(buf+len, PAGE_SIZE, | 246 | len += scnprintf(buf+len, PAGE_SIZE - len, |
247 | "sync_direct:\t\t%s\n", | 247 | "sync_direct:\t\t%s\n", |
248 | test_fw_config->sync_direct ? "true" : "false"); | 248 | test_fw_config->sync_direct ? "true" : "false"); |
249 | len += snprintf(buf+len, PAGE_SIZE, | 249 | len += scnprintf(buf+len, PAGE_SIZE - len, |
250 | "read_fw_idx:\t%u\n", test_fw_config->read_fw_idx); | 250 | "read_fw_idx:\t%u\n", test_fw_config->read_fw_idx); |
251 | 251 | ||
252 | mutex_unlock(&test_fw_mutex); | 252 | mutex_unlock(&test_fw_mutex); |