chiark / gitweb /
util: change endswith() to return a pointer to the suffix
[elogind.git] / src / shared / logs-show.c
index 28d12d3d4a6798b4b4b6e86b7cecc7edac47d8ec..63a48e4552d37b6c39d3912903aaf71bf3bc4dc7 100644 (file)
@@ -243,7 +243,7 @@ static int output_short(
                 }
         }
 
-        if (flags)
+        if (flags & OUTPUT_SHOW_ALL)
                 fprintf(f, ": %s%.*s%s\n", color_on, (int) message_len, message, color_off);
         else if (!utf8_is_printable_n(message, message_len)) {
                 char bytes[FORMAT_BYTES_MAX];
@@ -405,7 +405,7 @@ static int output_export(
         return 0;
 }
 
-static void json_escape(
+void json_escape(
                 FILE *f,
                 const char* p,
                 size_t l,