From: Zbigniew Jędrzejewski-Szmek Date: Sat, 7 May 2016 21:15:34 +0000 (-0400) Subject: shared/install: use "→" instead of "pointing to" for a symlink X-Git-Tag: v230~60^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a760db24bbdc4a7b185c9be29cef5cec4e442845;p=thirdparty%2Fsystemd.git 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.) --- diff --git a/src/shared/install.c b/src/shared/install.c index 88867c456ee..94dc523414f 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)