Fix: string format warnings on 32 bits
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 1 May 2019 15:40:16 +0000 (11:40 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:56 +0000 (00:12 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I49fdb170642bfd0c7326719f42973863af41c8e7
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1141
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/ctf/common/bfcr/bfcr.c
plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c

index 6ddd1dd1a838db35d74294a19f51fc04cfaab77b..2d5478b6b68d4532757d6327238ad5ad574a55a0 100644 (file)
@@ -672,7 +672,7 @@ enum bt_bfcr_status read_bit_array_class_and_call_continue(struct bt_bfcr *bfcr,
        available = available_bits(bfcr);
        needed_bits = fc->size - bfcr->stitch.at;
        BT_LOGV("Continuing basic field decoding: "
-               "bfcr-addr=%p, field-size=%u, needed-size=%" PRId64 ", "
+               "bfcr-addr=%p, field-size=%u, needed-size=%zu, "
                "available-size=%zu",
                bfcr, fc->size, needed_bits, available);
        if (needed_bits <= available) {
index ca8f850702c79eb497f22bf232b924047b6e7cd1..7c9c4e5bfcbda1c2cdb062bf20f5c08bed69ab8b 100644 (file)
@@ -299,7 +299,7 @@ int field_class_signed_enumeration_copy(
                                        i_mapping, range_index, &lower, &upper);
 
                        BT_LOGD("Copying range in enumeration field class: "
-                                       "label=%s, lower=%ld, upper=%ld",
+                                       "label=%s, lower=%"PRId64", upper=%"PRId64,
                                        label, lower, upper);
 
                        /* Add the label and its range to the copy field class. */
This page took 0.026545 seconds and 5 git commands to generate.