From 4adae55d98efd074853800b34dbab8095202e64e Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 11 Aug 2025 15:09:19 +0200 Subject: [PATCH] fw/applib/graphics/text_layout: fix assert formatting Signed-off-by: Gerard Marull-Paretas --- src/fw/applib/graphics/text_layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fw/applib/graphics/text_layout.c b/src/fw/applib/graphics/text_layout.c index 8e96dd9f..3573ffe1 100644 --- a/src/fw/applib/graphics/text_layout.c +++ b/src/fw/applib/graphics/text_layout.c @@ -469,7 +469,7 @@ void update_dimensions_char_visitor_cb(GContext* ctx, const TextBoxParams* const line->width_px = (cursor.origin.x + glyph_width_px) - line->origin.x; PBL_ASSERT(line->width_px <= text_box_params->box.size.w, - "Line <%p>: max extent=<%u> exceeds text_box_params width=<%u>", + "Line <%p>: max extent=<%" PRId16 "> exceeds text_box_params width=<%" PRId16 ">", line, line->width_px + line->origin.x, text_box_params->box.size.w); } @@ -494,7 +494,7 @@ utf8_t* walk_line(GContext* ctx, Line* line, const TextBoxParams* const text_box } PBL_ASSERT(line->width_px <= text_box_params->box.size.w, - "Line <%p>: max extent=<%u> exceeds text_box_params width=<%u>", line, + "Line <%p>: max extent=<%" PRId16 "> exceeds text_box_params width=<%" PRId16 ">", line, line->width_px + line->origin.x, text_box_params->box.size.w); int suffix_width_px = 0;