Skip to content

Commit

Permalink
sensors: default_rtio_sensor: fix build warning
Browse files Browse the repository at this point in the history
Fix a build warning on 64 bit architectures:

zephyr/drivers/sensor/default_rtio_sensor.c:238:17: error: format '%zu'
expects argument of type 'size_t', but argument 2 has type 'uint32_t'
{aka 'unsigned int'}

num_channels type changed to uint32_t in 96175fc.

(cherry picked from commit d53b1a1)

Original-Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
GitOrigin-RevId: d53b1a1
Change-Id: I8e020edf97b70806ef622ded89f9f30098664860
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4921895
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
  • Loading branch information
fabiobaltieri authored and Chromeos LUCI committed Oct 9, 2023
1 parent 1cbb1cc commit 4c0dd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sensor/default_rtio_sensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static void sensor_submit_fallback(const struct device *dev, struct rtio_iodev_s
}
sample_idx += num_samples;
}
LOG_DBG("Total channels in header: %zu", header->num_channels);
LOG_DBG("Total channels in header: %u", header->num_channels);
rtio_iodev_sqe_ok(iodev_sqe, 0);
}

Expand Down

0 comments on commit 4c0dd84

Please sign in to comment.