Use %ll instead of %L instead of scanf.

Mac build barfs on L, and the manpage says they're equivalent.

Hopefully fixes #147

Change-Id: I3aa57775731f3f5ceb03097cae2a9dc6fd426dcd
This commit is contained in:
Tim Newsome 2017-12-15 15:31:03 -08:00
parent 20236ca817
commit 1e43d32e01
1 changed files with 1 additions and 1 deletions

View File

@ -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;