summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-07 17:15:34 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-09 15:17:57 -0400
commita760db24bbdc4a7b185c9be29cef5cec4e442845 (patch)
tree0bb99b58265e724e58b1cbcb772b6ed8f5b7b355 /src
parent8515830341a49a0af875333a1893a8aa41ee1099 (diff)
shared/install: use "→" instead of "pointing to" for a symlink
It's quite a bit shorter and just as readable. (The full sentence with "pointing to" was added to replace a text that used "ln -s %s %s". Using the "ln" syntax is indeed unclear, because it's not obvious which is the source and which is the target, and because symlink(2) uses the opposite order to ln(1). But with the unicode arrow there should be no ambiguity.)
Diffstat (limited to 'src')
-rw-r--r--src/shared/install.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index 88867c456e..94dc523414 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -40,6 +40,7 @@
#include "hashmap.h"
#include "install-printf.h"
#include "install.h"
+#include "locale-util.h"
#include "log.h"
#include "macro.h"
#include "mkdir.h"
@@ -336,7 +337,10 @@ void unit_file_dump_changes(int r, const char *verb, const UnitFileChange *chang
switch(changes[i].type) {
case UNIT_FILE_SYMLINK:
if (!quiet)
- log_info("Created symlink %s, pointing to %s.", changes[i].path, changes[i].source);
+ log_info("Created symlink %s %s %s.",
+ changes[i].path,
+ draw_special_char(DRAW_ARROW),
+ changes[i].source);
break;
case UNIT_FILE_UNLINK:
if (!quiet)