mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Refactor to share err/warn log API between daemon and client code
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
10437887fc
commit
37e3be9a0d
10 files changed
+53
-32
No files matched your search
@@ -66,7 +66,7 @@ static inline char *pid_runpath(const char *file, char *path, size_t len)
|
||||
|
||||
rc = paste(path, len, prefix, file);
|
||||
if (rc < 0 || (size_t)rc >= len)
|
||||
_e("File path '%s' truncated, should end with '%s'", path, file);
|
||||
err(1, "File path '%s' truncated, should end with '%s'", path, file);
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user