mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
Use svc_ident() for more cases
- Drop basename() of svc->cmd from remaining code - Replace uses of svc->cmd with svc_ident(svc) - Use svc_ident() as default log tag Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
467f1cca81
commit
fdbd25c1b5
4 files changed
+29
-26
No files matched your search
+2
-2
@@ -454,12 +454,12 @@ void conf_parse_cond(svc_t *svc, char *cond)
|
||||
ptr[i] = 0;
|
||||
|
||||
if (i >= sizeof(svc->cond)) {
|
||||
logit(LOG_WARNING, "Too long event list in declaration of %s: %s", svc->cmd, ptr);
|
||||
logit(LOG_WARNING, "Too long event list in declaration of %s: %s", svc_ident(svc, NULL, 0), ptr);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!strncmp(ptr, "svc/", 4)) {
|
||||
logit(LOG_ERR, "Unsupported cond syntax for %s: <%s", svc->cmd, ptr);
|
||||
logit(LOG_ERR, "Unsupported cond syntax for %s: <%s", svc_ident(svc, NULL, 0), ptr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user