Skip to content

Commit 3e029aa

Browse files
kartbenfabiobaltieri
authored andcommitted
tests: display: cfb: fix warning in verify_image()
use proper format specifier for uint32_t variables Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 1037a0c commit 3e029aa

File tree

1 file changed

+2
-2
lines changed
  • tests/subsys/display/cfb/basic/src

1 file changed

+2
-2
lines changed

tests/subsys/display/cfb/basic/src/utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ bool verify_image(int cmp_x, int cmp_y, const uint32_t *img, size_t width, size_
8080
uint32_t img_pix = image_pixel(img, width, x, y);
8181

8282
if (disp_pix != img_pix) {
83-
LOG_INF("get_pixel(%d, %d) = %lu", x, y, disp_pix);
84-
LOG_INF("pixel_color(%d, %d) = %lu", x, y, img_pix);
83+
LOG_INF("get_pixel(%d, %d) = %" PRIu32, x, y, disp_pix);
84+
LOG_INF("pixel_color(%d, %d) = %" PRIu32, x, y, img_pix);
8585
LOG_INF("disp@(0, %d) %p", y, read_buffer + (y * width / 8));
8686
LOG_HEXDUMP_INF(read_buffer + (y * width / 8), 64, "");
8787
LOG_INF("img@(0, %d) %p", y, (uint32_t *)img + (y * width));

0 commit comments

Comments
 (0)