aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2023-09-15 14:12:03 +0200
committerMichal Simek <michal.simek@amd.com>2023-09-21 13:20:12 +0200
commitdee8739a1ba5fe8cdf1c51b168dbc56f7bd921c4 (patch)
treeef80c491d57cbf611f3af454f9316cdc830d31c9
parent1290262292473bd89b6beacf2e4e43b27c3c3617 (diff)
downloadu-boot-dee8739a1ba5fe8cdf1c51b168dbc56f7bd921c4.zip
u-boot-dee8739a1ba5fe8cdf1c51b168dbc56f7bd921c4.tar.gz
u-boot-dee8739a1ba5fe8cdf1c51b168dbc56f7bd921c4.tar.bz2
trace: Use 64bit variable for start and len
tputq() requires variables to have 64bit width that's why make them 64bit to clean alignment requirement. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/6edb34ef1f10010d2380f964fb6b4fb3dc257799.1694779918.git.michal.simek@amd.com
-rw-r--r--tools/proftool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/proftool.c b/tools/proftool.c
index 101bcb6..869a2a3 100644
--- a/tools/proftool.c
+++ b/tools/proftool.c
@@ -1493,7 +1493,8 @@ static int write_pages(struct twriter *tw, enum out_format_t out_format,
static int write_flyrecord(struct twriter *tw, enum out_format_t out_format,
int *missing_countp, int *skip_countp)
{
- int start, ret, len;
+ unsigned long long start, len;
+ int ret;
FILE *fout = tw->fout;
char str[200];