chiark / gitweb /
util: properly handle empty word suffixes/prefixes in startswith()/endswith()
[elogind.git] / socket.c
index 3e7b0f8ba5f94b0e0e7c7029e163c59d77c7f84c..827d7b5e97600f5771a5b7d828782e8da650702d 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -251,7 +251,7 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) {
                 if (!s->exec_command[c])
                         continue;
 
-                fprintf(f, "%s %s:\n",
+                fprintf(f, "%s-> %s:\n",
                         prefix, socket_exec_command_to_string(c));
 
                 exec_command_dump_list(s->exec_command[c], f, prefix2);
@@ -496,7 +496,7 @@ static void socket_set_state(Socket *s, SocketState state) {
                 socket_close_fds(s);
 
         if (state != old_state)
-                log_debug("%s changed %s  %s",
+                log_debug("%s changed %s -> %s",
                           s->meta.id,
                           socket_state_to_string(old_state),
                           socket_state_to_string(state));