lib/util: Add missing newlines to logging messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 31 Jul 2023 04:14:00 +0000 (16:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:36 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/util_file.c
lib/util/util_str_escape.c
lib/util/util_strlist_v3.c

index fa5abadedec89cdf0c1bf7c76f1da81e7a62dbb1..0e54dffcbf28a8f49925b220317b84ac478f3c4f 100644 (file)
@@ -145,7 +145,7 @@ char *fgets_slash(TALLOC_CTX *mem_ctx, char *s2, size_t maxlen, FILE *f)
 
                        m = maxlen * 2;
                        if (m < maxlen) {
-                               DBG_ERR("length overflow");
+                               DBG_ERR("length overflow\n");
                                TALLOC_FREE(s);
                                return NULL;
                        }
index ea0fcc2f9051060ba76a9447e25cb703fa0535e6..750d64bfa570ed44828f6dc4e974c56b8f515511 100644 (file)
@@ -72,7 +72,7 @@ char *log_escape(TALLOC_CTX *frame, const char *in)
 
        encoded = talloc_array( frame, char, size);
        if (encoded == NULL) {
-               DBG_ERR( "Out of memory allocating encoded string");
+               DBG_ERR( "Out of memory allocating encoded string\n");
                return NULL;
        }
 
index c248575c5255cceec8b38977b1c21c64fa3b16b7..75973f213472b31eeda5283f1d85c922891e2938 100644 (file)
@@ -63,7 +63,7 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
 
        s = talloc_strdup(list, string);
        if (s == NULL) {
-               DEBUG(0,("str_list_make: Unable to allocate memory"));
+               DEBUG(0,("str_list_make: Unable to allocate memory\n"));
                TALLOC_FREE(list);
                return NULL;
        }
@@ -99,7 +99,7 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
                                                   lsize + 1);
                        if (tmp == NULL) {
                                DEBUG(0,("str_list_make: "
-                                       "Unable to allocate memory"));
+                                       "Unable to allocate memory\n"));
                                TALLOC_FREE(list);
                                return NULL;
                        }