mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
Minor refactor of error/debug messages
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
19b81cf434
commit
4b4572de4d
8 files changed
+26
-26
No files matched your search
@@ -45,14 +45,14 @@ int tty_register(char *line)
|
||||
char *runlevels = NULL, *term = NULL;
|
||||
|
||||
if (!line) {
|
||||
_e("Invalid input argument.");
|
||||
_e("Invalid input argument");
|
||||
return errno = EINVAL;
|
||||
}
|
||||
|
||||
cmd = strtok(line, " ");
|
||||
if (!cmd) {
|
||||
incomplete:
|
||||
_e("Incomplete tty, cannot register.");
|
||||
_e("Incomplete tty, cannot register");
|
||||
return errno = EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user