]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:registry: Add missing newlines to logging messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 7 Aug 2023 04:47:30 +0000 (16:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:38 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/registry/reg_format.c
source3/registry/reg_parse.c

index d3ac2401f3cbafdb1d4df4bd64e4c9893c2ce090..f353f79ab593bcd92a4ea2ad0fe3e40ce9eb2c14 100644 (file)
@@ -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;
        }
index dc084dc51b7b3f9c8ab987762a45b31413b44e1c..b6a7f684ac546c98963cb9967e951dd3b6d7b92a 100644 (file)
@@ -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;