From: Joseph Sutton Date: Mon, 7 Aug 2023 04:47:30 +0000 (+1200) Subject: s3:registry: Add missing newlines to logging messages X-Git-Tag: tevent-0.16.0~1136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd3d9aa25d77e9c90fc9daba0e0fb93cb0a1df40;p=thirdparty%2Fsamba.git s3:registry: Add missing newlines to logging messages Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/registry/reg_format.c b/source3/registry/reg_format.c index d3ac2401f3c..f353f79ab59 100644 --- a/source3/registry/reg_format.c +++ b/source3/registry/reg_format.c @@ -96,7 +96,7 @@ cbuf_print_hive(cbuf* ost, const char* hive, int len, const struct fmt_key* fmt) if (fmt->hive_fmt != FMT_HIVE_PRESERVE) { const struct hive_info* hinfo = hive_info(hive); if (hinfo == NULL) { - DEBUG(0, ("Unknown hive %*s", len, hive)); + DEBUG(0, ("Unknown hive %*s\n", len, hive)); } else { switch(fmt->hive_fmt) { case FMT_HIVE_SHORT: @@ -108,7 +108,7 @@ cbuf_print_hive(cbuf* ost, const char* hive, int len, const struct fmt_key* fmt) len = hinfo->long_name_len; break; default: - DEBUG(0, ("Unsupported hive format %d", + DEBUG(0, ("Unsupported hive format %d\n", (int)fmt->hive_fmt)); return -1; } @@ -781,13 +781,13 @@ struct reg_format* reg_format_file(const void* talloc_ctx, talloc_steal(fmt, fmt_ctx); if (!set_iconv(&fmt->fromUTF16, opt.str_enc, "UTF-16LE")) { /* HACK */ - DEBUG(0, ("reg_format_file: failed to set string encoding %s", + DEBUG(0, ("reg_format_file: failed to set string encoding %s\n", opt.str_enc)); goto fail; } if (!set_iconv(&fmt_ctx->fromUnix, opt.enc, "unix")) { - DEBUG(0, ("reg_format_file: failed to set file encoding %s", + DEBUG(0, ("reg_format_file: failed to set file encoding %s\n", opt.enc)); goto fail; } diff --git a/source3/registry/reg_parse.c b/source3/registry/reg_parse.c index dc084dc51b7..b6a7f684ac5 100644 --- a/source3/registry/reg_parse.c +++ b/source3/registry/reg_parse.c @@ -258,7 +258,7 @@ struct reg_parse* reg_parse_new(const void* ctx, s->flags = flags; if (str_enc && !set_iconv(&s->str2UTF16, "UTF-16LE", str_enc)) { - DEBUG(0, ("reg_parse_new: failed to set encoding: %s", + DEBUG(0, ("reg_parse_new: failed to set encoding: %s\n", str_enc)); goto fail; } @@ -581,7 +581,7 @@ int reg_parse_line(struct reg_parse* parser, const char* line) cbuf_clear(tmp); if (parser->state != STATE_KEY_OPEN) { - DEBUG(0, ("value \"%s\" without a key at line: %i", + DEBUG(0, ("value \"%s\" without a key at line: %i\n", cbuf_gets(parser->valname, 0), parser->linenum)); return -3; } @@ -604,7 +604,7 @@ int reg_parse_line(struct reg_parse* parser, const char* line) } else { DEBUG(0, ("value \"%s\" parse error" - "at line: %i pos: %li : %s", + "at line: %i pos: %li : %s\n", cbuf_gets(parser->valname, 0), parser->linenum, (long int)(pos-line), pos)); return -3;