[1/5] panfrost: Fix sscanf format options

Submitted by Tomeu Vizoso on March 27, 2019, 3:32 p.m.

Details

Message ID 20190327153252.29098-1-tomeu.vizoso@collabora.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Tomeu Vizoso March 27, 2019, 3:32 p.m.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---
 src/gallium/drivers/panfrost/pandecode/cmdline.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/panfrost/pandecode/cmdline.c b/src/gallium/drivers/panfrost/pandecode/cmdline.c
index b2ba21cfe414..07bffdb5c493 100644
--- a/src/gallium/drivers/panfrost/pandecode/cmdline.c
+++ b/src/gallium/drivers/panfrost/pandecode/cmdline.c
@@ -126,7 +126,7 @@  pandecode_read_mmap(const char *base, const char *line)
         mali_ptr addr;
         char name[512];
 
-        sscanf(line, "MMAP %lx %s", &addr, name);
+        sscanf(line, "MMAP %llx %s", &addr, name);
         pandecode_read_memory(base, name, addr);
 }
 
@@ -137,7 +137,7 @@  pandecode_read_job_submit(const char *base, const char *line)
         unsigned core_req;
         unsigned is_bifrost;
 
-        sscanf(line, "JS %lx %x %x", &addr, &core_req, &is_bifrost);
+        sscanf(line, "JS %llx %x %x", &addr, &core_req, &is_bifrost);
         pandecode_replay_jc(addr, is_bifrost);
 }
 

Comments

Should be "%" PRIx64, I think?