Unverified Commit e9d00c6c authored by Matteo Migliorini's avatar Matteo Migliorini Committed by GitHub

Fixed seg fault

little bug in XDMA/tools/reg_rw.c
parent edc6a6b1
......@@ -63,7 +63,7 @@ int main(int argc, char **argv)
device = strdup(argv[1]);
target = strtoul(argv[2], 0, 0);
printf("device: %s, address: 0x%08x, access %s: %s.\n",
printf("device: %s, address: 0x%08x, access %s.\n",
device, (unsigned int)target, argc >= 4 ? "write" : "read");
/* data given? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment