summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-07 19:03:22 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-07 19:10:04 +0100
commit03fc9c723cfc59467a7fccc305f34273f8564b25 (patch)
tree1a887bbd0f931eb7d2b32adc605196862b7bbc9e /src/core
parent1b89b0c499cd4bf0ff389caab4ecaae6e75f9d4e (diff)
core: add a note clarifying that we should be careful when adding new specifiers
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit-printf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/unit-printf.c b/src/core/unit-printf.c
index 8f7eb84c61..746e1a46ef 100644
--- a/src/core/unit-printf.c
+++ b/src/core/unit-printf.c
@@ -257,6 +257,10 @@ int unit_full_printf(Unit *u, const char *format, char **ret) {
* %s: the shell of the running user
*
* %v: `uname -r` of the running system
+ *
+ * NOTICE: When you add new entries here, please be careful: specifiers which depend on settings of the unit
+ * file itself are broken by design, as they would resolve differently depending on whether they are used
+ * before or after the relevant configuration setting. Hence: don't add them.
*/
const Specifier table[] = {