X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Fpretty%2Fprint.c;h=7e34af6d5d9228ecca206fef9fe962a1f978a763;hb=601b0d3c9a6bf91274d0f01ccdec7fecfe3ed310;hp=f4f7a5868c08eb970deba6dd699370ec3c989b08;hpb=864cad701843d041ae0c9113fc2c20f9b3e1835d;p=babeltrace.git diff --git a/plugins/text/pretty/print.c b/plugins/text/pretty/print.c index f4f7a586..7e34af6d 100644 --- a/plugins/text/pretty/print.c +++ b/plugins/text/pretty/print.c @@ -379,10 +379,8 @@ enum bt_component_status print_event_header(struct pretty_component *pretty, 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; } } @@ -402,10 +400,8 @@ enum bt_component_status print_event_header(struct pretty_component *pretty, } 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; } } @@ -425,11 +421,8 @@ enum bt_component_status print_event_header(struct pretty_component *pretty, } 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; } } @@ -449,11 +442,9 @@ enum bt_component_status print_event_header(struct pretty_component *pretty, } 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; } }