Permalink
Browse files

Log: Fix output format for logged xml

  • Loading branch information...
1 parent 44d3e13 commit fb0a3d2c5f9bec3a6e2676a618f0fcf15b26c6d8 @beekhof committed Mar 19, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/common/xml.c
View
@@ -1065,8 +1065,8 @@ log_data_element(int log_level, const char *file, const char *function, int line
/* Since we use the same file and line, to avoid confusing libqb, we need to use the same format strings */
if (data == NULL) {
- do_crm_log_alias(log_level, file, function, line, "%s%s", prefix,
- ": No data to dump as XML");
+ do_crm_log_alias(log_level, file, function, line, "%s: %s", prefix,
+ "No data to dump as XML");
return;
} else if (is_set(options, xml_log_option_diff_short)
@@ -1128,7 +1128,7 @@ log_data_element(int log_level, const char *file, const char *function, int line
buffer_print(buffer, max, offset, "/>");
}
- do_crm_log_alias(log_level, file, function, line, "%s%s", prefix, buffer);
+ do_crm_log_alias(log_level, file, function, line, "%s %s", prefix, buffer);
if (data->children) {
offset = 0;
@@ -1143,7 +1143,7 @@ log_data_element(int log_level, const char *file, const char *function, int line
insert_prefix(options, &buffer, &offset, &max, depth);
buffer_print(buffer, max, offset, "</%s>", name);
- do_crm_log_alias(log_level, file, function, line, "%s%s", prefix, buffer);
+ do_crm_log_alias(log_level, file, function, line, "%s %s", prefix, buffer);
}
free(prefix_m);

0 comments on commit fb0a3d2

Please sign in to comment.