diff options
author | Tim Newsome <tim@sifive.com> | 2017-12-15 15:31:03 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-12-15 15:31:36 -0800 |
commit | 1e43d32e014be32a26388c6a1f0286f2d7c51ee8 (patch) | |
tree | 9b7b5296155283e08f40170a56cbe330910cf2b3 | |
parent | 20236ca8170e2e833f4fe5b0219d64c8562d9ffe (diff) | |
download | riscv-openocd-1e43d32e014be32a26388c6a1f0286f2d7c51ee8.zip riscv-openocd-1e43d32e014be32a26388c6a1f0286f2d7c51ee8.tar.gz riscv-openocd-1e43d32e014be32a26388c6a1f0286f2d7c51ee8.tar.bz2 |
Use %ll instead of %L instead of scanf.macbuild
Mac build barfs on L, and the manpage says they're equivalent.
Hopefully fixes #147
Change-Id: I3aa57775731f3f5ceb03097cae2a9dc6fd426dcd
-rw-r--r-- | src/target/riscv/riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index b9be133..ac7b997 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1168,7 +1168,7 @@ COMMAND_HANDLER(riscv_set_scratch_ram) } long long unsigned int address; - int result = sscanf(CMD_ARGV[0], "%Lx", &address); + int result = sscanf(CMD_ARGV[0], "%llx", &address); if (result != (int) strlen(CMD_ARGV[0])) { LOG_ERROR("%s is not a valid address for command.", CMD_ARGV[0]); riscv_use_scratch_ram = false; |