From 892071db34ece32ec3666ffaee03a8b4aee5c68f Mon Sep 17 00:00:00 2001 From: Roine Stenberg Date: Sat, 5 Oct 2024 08:10:20 +0200 Subject: [PATCH] Avoid error from Tasking ctc compiler for Infineon Aurix: [ush_cmd_xxd.c line 80: type of argument #3 is incompatible with format. Change sprintf '%08lX: ' to '%08zX: ' for size_t variable (c99 required). --- src/src/commands/ush_cmd_xxd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/commands/ush_cmd_xxd.c b/src/src/commands/ush_cmd_xxd.c index 27d6ef5..d7998e8 100644 --- a/src/src/commands/ush_cmd_xxd.c +++ b/src/src/commands/ush_cmd_xxd.c @@ -77,7 +77,7 @@ bool ush_buildin_cmd_xxd_service(struct ush_object *self, struct ush_file_descri case USH_STATE_PROCESS_SERVICE: { switch (self->process_index) { case 0: - sprintf(self->desc->output_buffer, "%08lX: ", self->process_index_item); + sprintf(self->desc->output_buffer, "%08zX: ", self->process_index_item); ush_write_pointer(self, self->desc->output_buffer, self->state); self->process_index = 1; break;