#include "util.h"
#include "env-util.h"
#include "def.h"
+#include "unit.h"
#define VALID_CHARS_ENV_NAME \
DIGITS LETTERS \
return strv_env_get_n(l, name, strlen(name));
}
-char **strv_env_clean_log(char **e, const char *message) {
+char **strv_env_clean_log(char **e, const char *unit_id, const char *message) {
char **p, **q;
int k = 0;
if (!env_assignment_is_valid(*p)) {
if (message)
- log_error("Ignoring invalid environment '%s': %s", *p, message);
+ log_unit_error(unit_id, "Ignoring invalid environment '%s': %s", *p, message);
free(*p);
continue;
}
}
char **strv_env_clean(char **e) {
- return strv_env_clean_log(e, NULL);
+ return strv_env_clean_log(e, NULL, NULL);
}