diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2016-10-03 22:59:57 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2016-10-03 22:59:57 -0500 |
commit | 42ca6f88500bec23f513cf182f6cd0594044cef1 (patch) | |
tree | 9da27b73d1b79f505c0dc2d298253ea5e21debeb | |
parent | c2ef9e55120a453878e9e912270f852f7e071174 (diff) | |
download | devmem-aspeed-42ca6f88500bec23f513cf182f6cd0594044cef1.tar.gz devmem-aspeed-42ca6f88500bec23f513cf182f6cd0594044cef1.zip |
Normalise value output
-rw-r--r-- | devmem-aspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devmem-aspeed.c b/devmem-aspeed.c index 6034dcd..293a798 100644 --- a/devmem-aspeed.c +++ b/devmem-aspeed.c @@ -173,7 +173,7 @@ int main(int argc, char **argv) { fprintf(stderr, "Illegal data type '%c'.\n", access_type); exit(2); } - printf("Value at address 0x%X (%p): 0x%X\n", target, virt_addr, read_result); + printf("Value at address 0x%X (%p): 0x%08X\n", target, virt_addr, read_result); fflush(stdout); if(argc > 3) { |