mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Fix list output whitespace
This commit is contained in:
parent
acc12d579f
commit
dcf9ec030c
|
@ -857,11 +857,17 @@ static ssize_t uw_charging_prios_available_show(struct device *child,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
char *buffer)
|
char *buffer)
|
||||||
{
|
{
|
||||||
int i;
|
int i, n;
|
||||||
for (i = 0; i < ARRAY_SIZE(charging_prio_options); ++i)
|
n = ARRAY_SIZE(charging_prio_options);
|
||||||
sprintf(buffer + strlen(buffer), " %s",
|
for (i = 0; i < n; ++i) {
|
||||||
|
sprintf(buffer + strlen(buffer), "%s",
|
||||||
charging_prio_options[i].descriptor);
|
charging_prio_options[i].descriptor);
|
||||||
sprintf(buffer + strlen(buffer), "\n");
|
if (i < n - 1)
|
||||||
|
sprintf(buffer + strlen(buffer), " ");
|
||||||
|
else
|
||||||
|
sprintf(buffer + strlen(buffer), "\n");
|
||||||
|
}
|
||||||
|
|
||||||
return strlen(buffer);
|
return strlen(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue