[Skiboot] [PATCH] getscom/putscom: always print full 16 digits
Stewart Smith
stewart at linux.vnet.ibm.com
Fri Jun 24 13:30:48 AEST 2016
Suggested-by: Daniel M Crowell <dcrowell at us.ibm.com>
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
external/xscom-utils/getscom.c | 2 +-
external/xscom-utils/putscom.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/external/xscom-utils/getscom.c b/external/xscom-utils/getscom.c
index 30afab7eda10..e6eb54de1690 100644
--- a/external/xscom-utils/getscom.c
+++ b/external/xscom-utils/getscom.c
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
fprintf(stderr,"Error %d reading XSCOM\n", rc);
exit(1);
}
- printf("%" PRIx64 "\n", val);
+ printf("%016" PRIx64 "\n", val);
return 0;
}
diff --git a/external/xscom-utils/putscom.c b/external/xscom-utils/putscom.c
index 116fef4b1c54..01a71c62f682 100644
--- a/external/xscom-utils/putscom.c
+++ b/external/xscom-utils/putscom.c
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
fprintf(stderr,"Error %d reading XSCOM\n", rc);
exit(1);
}
- printf("%" PRIx64 "\n", val);
+ printf("%016" PRIx64 "\n", val);
return 0;
}
--
2.1.4
More information about the Skiboot
mailing list