summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2016-10-03 22:59:57 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2016-10-03 22:59:57 -0500
commit42ca6f88500bec23f513cf182f6cd0594044cef1 (patch)
tree9da27b73d1b79f505c0dc2d298253ea5e21debeb
parentc2ef9e55120a453878e9e912270f852f7e071174 (diff)
downloaddevmem-aspeed-42ca6f88500bec23f513cf182f6cd0594044cef1.zip
devmem-aspeed-42ca6f88500bec23f513cf182f6cd0594044cef1.tar.gz
Normalise value output
-rw-r--r--devmem-aspeed.c2
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) {
OpenPOWER on IntegriCloud