mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
Add empty space for formatting.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
720f1b0e5b
commit
35b771fb42
1 file changed
+7
-1
@@ -104,12 +104,18 @@ static int parse_conf(char *file)
|
|||||||
* Loading services configuration ....
|
* Loading services configuration ....
|
||||||
*/
|
*/
|
||||||
if (!string_match (file, FINIT_CONF)) {
|
if (!string_match (file, FINIT_CONF)) {
|
||||||
|
/* Remove leading path */
|
||||||
x = strrchr(file, '/');
|
x = strrchr(file, '/');
|
||||||
if (!x) x = file;
|
if (!x) x = file;
|
||||||
else x++;
|
else x++;
|
||||||
|
|
||||||
|
/* Remove ending .conf */
|
||||||
strlcpy(line, x, sizeof(line));
|
strlcpy(line, x, sizeof(line));
|
||||||
x = strstr(line, ".conf");
|
x = strstr(line, ".conf");
|
||||||
if (x) *x = 0;
|
if (x) *x = 0;
|
||||||
|
|
||||||
|
/* Add empty space. */
|
||||||
|
strcat(line, " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
print(0, "Loading %sconfiguration", line);
|
print(0, "Loading %sconfiguration", line);
|
||||||
|
|||||||
Reference in new issue
Block a user