Skip to content

Commit e41eade

Browse files
Benjamin CabéChromeos LUCI
authored andcommitted
tests: display: cfb: fix warning in verify_image()
use proper format specifier for uint32_t variables (cherry picked from commit 3e029aa) Original-Signed-off-by: Benjamin Cabé <[email protected]> GitOrigin-RevId: 3e029aa Cr-Build-Id: 8711682253588645601 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8711682253588645601 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Ie166bb3451795cc0fc9e2493337fb181c9f10b65 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6655865 Tested-by: Keith Short <[email protected]> Reviewed-by: Keith Short <[email protected]> Tested-by: Yuval Peress <[email protected]> Reviewed-by: Yuval Peress <[email protected]> Commit-Queue: Keith Short <[email protected]> Tested-by: ChromeOS Copybot <[email protected]>
1 parent 1e6fac0 commit e41eade

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)