Unverified Commit 350fb5c5 authored by Karen Xie's avatar Karen Xie Committed by GitHub

Merge pull request #138 from Mmiglio/master

Segmentation fault of XDMA tools/reg_rw.C
parents edc6a6b1 e9d00c6c
...@@ -63,7 +63,7 @@ int main(int argc, char **argv) ...@@ -63,7 +63,7 @@ int main(int argc, char **argv)
device = strdup(argv[1]); device = strdup(argv[1]);
target = strtoul(argv[2], 0, 0); 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"); device, (unsigned int)target, argc >= 4 ? "write" : "read");
/* data given? */ /* 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