Skip to content

Commit

Permalink
Avoid error from Tasking ctc compiler for Infineon Aurix:
Browse files Browse the repository at this point in the history
[ush_cmd_xxd.c line 80: type of argument marcinbor85#3 is incompatible with format.

Change sprintf '%08lX: ' to '%08zX: ' for size_t variable (c99 required).
  • Loading branch information
RoStCode committed Oct 5, 2024
1 parent fdf40d0 commit 892071d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/commands/ush_cmd_xxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 892071d

Please sign in to comment.