linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 0/2] Fix 32 bit Compiler Errors
@ 2021-01-27 18:23 Brian Gix
  2021-01-27 18:23 ` [PATCH BlueZ v2 1/2] advertising: Make data size explicit for formats Brian Gix
  2021-01-27 18:23 ` [PATCH BlueZ v2 2/2] tools/mgmt-tester: Make data size explicit for log Brian Gix
  0 siblings, 2 replies; 4+ messages in thread
From: Brian Gix @ 2021-01-27 18:23 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: luiz.dentz, brian.gix

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



Brian Gix (2):
  advertising: Make data size explicit for formats
  tools/mgmt-tester: Make data size explicit for log

 src/advertising.c   | 2 +-
 tools/mgmt-tester.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-27 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 18:23 [PATCH BlueZ v2 0/2] Fix 32 bit Compiler Errors Brian Gix
2021-01-27 18:23 ` [PATCH BlueZ v2 1/2] advertising: Make data size explicit for formats Brian Gix
2021-01-27 18:50   ` Fix 32 bit Compiler Errors bluez.test.bot
2021-01-27 18:23 ` [PATCH BlueZ v2 2/2] tools/mgmt-tester: Make data size explicit for log Brian Gix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).