commit | afa54c68455d70960aafb02665da14e2f20332ee | [log] [tgz] |
---|---|---|
author | Harvey.Wu <Harvey.Wu@quantatw.com> | Wed Mar 30 18:56:36 2022 +0800 |
committer | MARRI DEVENDER RAO <devenrao@in.ibm.com> | Wed Apr 06 05:07:03 2022 +0000 |
tree | 2c15a02e283a52859a768cc8295e185d608b099c | |
parent | 232f395e3acd8dd68098fa915438e0f9ea4fc0f6 [diff] [blame] |
Adding to support double type - The current OpenBMC's value dbus property type has been changed to 'double', so adding to support double type in yaml and format. phosphor-dbus-interfaces PR: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/11739 Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw.com> Change-Id: Ic02ce6c8bf91490f7709365c9cbab57b12a264cc
diff --git a/src/format.hpp b/src/format.hpp index cbece27..8fa6dc8 100644 --- a/src/format.hpp +++ b/src/format.hpp
@@ -49,6 +49,11 @@ static constexpr auto format = "=%lld"; }; template <> +struct GetFormatType<double> +{ + static constexpr auto format = "=%lf"; +}; +template <> struct GetFormatType<unsigned char> { static constexpr auto format = "=%hhd";