summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-06-14 21:50:55 +0200
committerSimon Glass <sjg@chromium.org>2019-07-10 16:52:58 -0600
commit2b7a3882e0f70d253fb6a2da5682c94aea4c46f1 (patch)
treeb4aac7e78f7d80bea00fc4e6f3bce3930e2fad1c /tools
parentb8e1f8270ca9667e84eaa4049e006c27e37f3cca (diff)
downloadu-boot-2b7a3882e0f70d253fb6a2da5682c94aea4c46f1.tar.gz
u-boot-2b7a3882e0f70d253fb6a2da5682c94aea4c46f1.tar.bz2
u-boot-2b7a3882e0f70d253fb6a2da5682c94aea4c46f1.zip
trace: do not limit trace buffer to 2GiB
There is no good reason to limit the trace buffer to 2GiB on a 64bit system. Adjust the types of the relevant parameters. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/proftool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/proftool.c b/tools/proftool.c
index c1803fa78a..fecb9d6e99 100644
--- a/tools/proftool.c
+++ b/tools/proftool.c
@@ -205,12 +205,12 @@ static struct func_info *find_caller_by_offset(uint32_t offset)
return low >= 0 ? &func_list[low] : NULL;
}
-static int read_calls(FILE *fin, int count)
+static int read_calls(FILE *fin, size_t count)
{
struct trace_call *call_data;
int i;
- notice("call count: %d\n", count);
+ notice("call count: %zu\n", count);
call_list = (struct trace_call *)calloc(count, sizeof(*call_data));
if (!call_list) {
error("Cannot allocate call_list\n");