mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
read back the written value and display
This commit is contained in:
parent
5061de23fa
commit
12a39a13db
1 changed files with 1 additions and 2 deletions
|
|
@ -105,8 +105,7 @@ main(int argc, char *argv[])
|
|||
reg = (dr != NULL) ? dr->addr : (uint32_t) strtoul(argv[0], NULL, 0);
|
||||
if (cp != NULL)
|
||||
regwrite(s, &atd, reg, (uint32_t) strtoul(cp, NULL, 0));
|
||||
else
|
||||
printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
|
||||
printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue