Skip to content

Fix 32 bit Compiler Errors

Brian Gix linux-bluetooth 3 versions Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 2 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2advertising: Fix formater for size_t data typesrc/advertising.c+1 -11 reply
2/2tools/mgmt-tester: Fix formatter for size_t valuetools/mgmt-tester.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH BlueZ v3 0/2] Fix 32 bit Compiler Errors

In a couple places the sizeof() macro has been assumed to return a (long unsigned) value, and so the string formater %lu has been used to print out warnings derived from this assumption. While correct on 64 bit systems, this is an incorrect assumption on 32 bit systems.

These two changes explicitly cast the sizeof return to long in the affected cases.

v2: Fix bluez.test.bot warnings

v3: Just use %zu format descriptor, which should be architecture agnostic.

Brian Gix (2):
advertising: Fix formater for size_t data type tools/mgmt-tester: Fix formatter for size_t value

 src/advertising.c   | 2 +-
 tools/mgmt-tester.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.4