X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fctf-writer%2Fresolve.c;h=6db0fb4aa632fa8e24c68f1f7d958506280bd925;hp=c6316c0bfee0e40ebb1473e5065aa7dfc9bb2be3;hb=39630c3ba7000fc6c9337b2420bbeba2d9d7c723;hpb=5c97e2daa9712d1fc3e1df186b25367b1e4cb8b1 diff --git a/src/ctf-writer/resolve.c b/src/ctf-writer/resolve.c index c6316c0b..6db0fb4a 100644 --- a/src/ctf-writer/resolve.c +++ b/src/ctf-writer/resolve.c @@ -662,7 +662,7 @@ struct bt_ctf_field_path *pathstr_to_field_path(const char *pathstr, GString *field_path_pretty = bt_ctf_field_path_string(field_path); const char *field_path_pretty_str = - field_path_pretty ? field_path_pretty->str : NULL; + field_path_pretty ? field_path_pretty->str : "(null)"; BT_LOGT("Found field path: path=\"%s\", field-path=\"%s\"", pathstr, field_path_pretty_str); @@ -785,9 +785,9 @@ int get_field_paths_lca_index(struct bt_ctf_field_path *field_path1, GString *field_path2_pretty = bt_ctf_field_path_string(field_path2); const char *field_path1_pretty_str = - field_path1_pretty ? field_path1_pretty->str : NULL; + field_path1_pretty ? field_path1_pretty->str : "(null)"; const char *field_path2_pretty_str = - field_path2_pretty ? field_path2_pretty->str : NULL; + field_path2_pretty ? field_path2_pretty->str : "(null)"; BT_LOGT("Finding lowest common ancestor (LCA) between two field paths: " "field-path-1=\"%s\", field-path-2=\"%s\"",