X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cmd%2Ftrace.c;h=1a6d8c304746214689a6edbb5891593e6a6c82a3;hb=214fb19bcce3bca0cb6d986984f609703cb5516f;hp=1e62a1a1999e37bae3c3bdfc413185568eff4a25;hpb=2218c54bc13c8045903afc05d1364439a230da1f;p=u-boot diff --git a/cmd/trace.c b/cmd/trace.c index 1e62a1a199..1a6d8c3047 100644 --- a/cmd/trace.c +++ b/cmd/trace.c @@ -43,7 +43,7 @@ static int create_func_list(int argc, char * const argv[]) err = trace_list_functions(buff + buff_ptr, avail, &needed); if (err) printf("Error: truncated (%#x bytes needed)\n", needed); - used = min(avail, needed); + used = min(avail, (size_t)needed); printf("Function trace dumped to %08lx, size %#zx\n", (ulong)map_to_sysmem(buff + buff_ptr), used); setenv_hex("profbase", map_to_sysmem(buff)); @@ -67,7 +67,7 @@ static int create_call_list(int argc, char * const argv[]) err = trace_list_calls(buff + buff_ptr, avail, &needed); if (err) printf("Error: truncated (%#x bytes needed)\n", needed); - used = min(avail, needed); + used = min(avail, (size_t)needed); printf("Call list dumped to %08lx, size %#zx\n", (ulong)map_to_sysmem(buff + buff_ptr), used);