Fix: flt.lttng-utils.debug-info: extra colon in `bin` member
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 1 May 2019 02:07:38 +0000 (22:07 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:56 +0000 (00:12 -0400)
There is an extra ':' character in the `bin` member of the `debug-info`
field.

Example of the issue from the tests:
   debug_info = { bin = "libhello_so:+0x15a6", func = "bar+0xa9", src =
   "libhello.c:13" }

The "libhello_so:+0x15a6" will now be printed "libhello_so+0x15a6".

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Ie7c4ea54e534eeb8a1bdd503760b791a01aa9594
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1129
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/lttng-utils/debug-info/debug-info.c

index 0146fa27efae3e43ad25da8f00b31da385786029..1bdd01e565038dd5a807c6aed7eae9ef01618843 100644 (file)
@@ -948,13 +948,6 @@ void fill_debug_info_bin_field(struct debug_info_source *dbg_info_src,
                                curr_field);
                }
 
-               status = bt_field_string_append(curr_field, ":");
-               if (status != BT_FIELD_STATUS_OK) {
-                       BT_LOGE("Cannot set colon component of \"bin\" "
-                               "curr_field field's value: str-fc-addr=%p",
-                               curr_field);
-               }
-
                status = bt_field_string_append(curr_field, dbg_info_src->bin_loc);
                if (status != BT_FIELD_STATUS_OK) {
                        BT_LOGE("Cannot set bin location component of \"bin\" "
This page took 0.024779 seconds and 5 git commands to generate.