src.ctf.fs: remove leftover use of pointer arithmetics
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 5 Jul 2019 20:34:51 +0000 (16:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:34 +0000 (11:53 -0400)
This change should have been include in the commit:
  commit de38c26a14b60cb3b6d31cc124c187e2c1816bf5
  Author: Francis Deslauriers <francis.deslauriers@efficios.com>
  Date:   Fri Jul 5 11:19:32 2019 -0400

      Fix: src.ctf.fs: pointer arithmetics on non-adjacent memory

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: If44dc7f5330f070c865b241d507082e253a92a4b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1641
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/data-stream-file.c

index 2c28c51d48b5a50c70e141ff03563063a89df255..929e96bffc3d9b92bdd1e36b41005a0f889daeb6 100644 (file)
@@ -411,7 +411,7 @@ struct ctf_fs_ds_index *build_index_from_idx_file(
                if (i != 0 && index_entry->offset < prev_index_entry->offset) {
                        BT_COMP_LOGW("Invalid, non-monotonic, packet offset encountered in LTTng trace index file: "
                                "previous offset=%" PRIu64 ", current offset=%" PRIu64,
-                               (index_entry - 1)->offset, index_entry->offset);
+                               prev_index_entry->offset, index_entry->offset);
                        goto error;
                }
 
This page took 0.026138 seconds and 4 git commands to generate.