golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
65 stars 20 forks source link

coap_req: fix log format for 'size_t' #363

Closed mniestroj closed 1 year ago

mniestroj commented 1 year ago

Use %zu instead of %d for printing size_t new_offset variable. This suppresses build time warnings for qemu_x86_64 platform:

coap_req.c:257:33: warning: format '%d' expects argument of type 'int', \
  but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit e99c4cc):

https://golioth-zephyr-sdk-doxygen-dev--pr363-coap-req-fix-log-e4gm0i16.web.app

(expires Thu, 20 Apr 2023 14:24:41 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a389eefadf4b4b68a539327b3459dd66c142cf49