if (print_names) {
print_name_equal(pretty, "trace:hostname");
}
- if (bt_value_string_get(hostname_str, &str)
- == BT_VALUE_STATUS_OK) {
- g_string_append(pretty->string, str);
- }
+ str = bt_value_string_get(hostname_str);
+ g_string_append(pretty->string, str);
dom_print = 1;
}
}
} else if (dom_print) {
g_string_append(pretty->string, ":");
}
- if (bt_value_string_get(domain_str, &str)
- == BT_VALUE_STATUS_OK) {
- g_string_append(pretty->string, str);
- }
+ str = bt_value_string_get(domain_str);
+ g_string_append(pretty->string, str);
dom_print = 1;
}
}
} else if (dom_print) {
g_string_append(pretty->string, ":");
}
- if (bt_value_string_get(procname_str, &str)
- == BT_VALUE_STATUS_OK) {
- g_string_append(pretty->string, str);
- }
-
+ str = bt_value_string_get(procname_str);
+ g_string_append(pretty->string, str);
dom_print = 1;
}
}
} else if (dom_print) {
g_string_append(pretty->string, ":");
}
- if (bt_value_integer_get(vpid_value, &value)
- == BT_VALUE_STATUS_OK) {
- g_string_append_printf(pretty->string, "(%" PRId64 ")", value);
- }
-
+ value = bt_value_integer_get(vpid_value);
+ g_string_append_printf(pretty->string,
+ "(%" PRId64 ")", value);
dom_print = 1;
}
}