From: Joseph Sutton Date: Mon, 31 Jul 2023 04:14:00 +0000 (+1200) Subject: lib/util: Add missing newlines to logging messages X-Git-Tag: tevent-0.16.0~1243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c67b452217fa257d19d072db36ff9fe59ce1078;p=thirdparty%2Fsamba.git lib/util: Add missing newlines to logging messages Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/util/util_file.c b/lib/util/util_file.c index fa5abadedec..0e54dffcbf2 100644 --- a/lib/util/util_file.c +++ b/lib/util/util_file.c @@ -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; } diff --git a/lib/util/util_str_escape.c b/lib/util/util_str_escape.c index ea0fcc2f905..750d64bfa57 100644 --- a/lib/util/util_str_escape.c +++ b/lib/util/util_str_escape.c @@ -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; } diff --git a/lib/util/util_strlist_v3.c b/lib/util/util_strlist_v3.c index c248575c525..75973f21347 100644 --- a/lib/util/util_strlist_v3.c +++ b/lib/util/util_strlist_v3.c @@ -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; }