summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2023-09-15 15:12:03 +0300
committerSimon Glass <sjg@chromium.org>2023-09-23 18:00:37 +0300
commit83711374ee127205dabecbbdab8f58abd504578c (patch)
tree38e7732abcc089e934097aa7a549df27b9ca4191
parentce8cb76c7cf5cadf9d4b6293df8fbede74535d93 (diff)
downloadu-boot-83711374ee127205dabecbbdab8f58abd504578c.tar.xz
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. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/proftool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/proftool.c b/tools/proftool.c
index 101bcb6333..869a2a32c5 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];