Skip to content

Commit b251546

Browse files
author
Eddie James
committed
Provide a fmtlib ostream formatter for SysPwrMode enum
fmtlib removed support for automatically formatting enums as integers in version 9. See fmtlib/fmt#1841. Signed-off-by: Eddie James <[email protected]> Change-Id: I6a5d04187e55c94d39d8b5ee334f9a37c93081ce
1 parent 2ccc3f6 commit b251546

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

occ_command.hpp

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include "occ_errors.hpp"
44
#include "utils.hpp"
55

6+
#include <fmt/ostream.h>
7+
68
#include <org/open_power/OCC/PassThrough/server.hpp>
79
#include <sdbusplus/bus.hpp>
810
#include <sdbusplus/server/object.hpp>
@@ -171,3 +173,7 @@ class OccCommand
171173

172174
} // namespace occ
173175
} // namespace open_power
176+
177+
template <>
178+
struct fmt::formatter<open_power::occ::SysPwrMode> : ostream_formatter
179+
{};

0 commit comments

Comments
 (0)