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:
Joachim Wiberg committed 2022-09-05 09:57:45 +02:00
1 parent 10437887fc
commit 37e3be9a0d
10 files changed
+53 -32

No files matched your search

+1 -1
View File
@@ -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;
}