From 31936c9754f75ea1f5830fdfb15fedb98cfb1509 Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 21 May 2021 10:40:59 +0100 Subject: [PATCH] bugfix - printf formatting incorrect in bounded_bitset method --- lib/include/srsran/adt/bounded_bitset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/include/srsran/adt/bounded_bitset.h b/lib/include/srsran/adt/bounded_bitset.h index d16966c39..552d98319 100644 --- a/lib/include/srsran/adt/bounded_bitset.h +++ b/lib/include/srsran/adt/bounded_bitset.h @@ -366,7 +366,8 @@ public: void from_uint64(uint64_t v) { srsran_assert(nof_words_() == 1, "ERROR: cannot convert bitset of size=%zd to uint64_t", size()); - srsran_assert(v < (1U << size()), "ERROR: Provided uint64=%ld does not fit in bitset of size=%zd", v, size()); + srsran_assert( + v < (1U << size()), "ERROR: Provided mask=0x%" PRIx64 " does not fit in bitset of size=%zd", v, size()); buffer[0] = v; }