| 541 | } |
| 542 | |
| 543 | static std::string VersionToString(uint32_t version) |
| 544 | { |
| 545 | uint32_t major, minor, patch; |
| 546 | if (version <= 0x2200) |
| 547 | { |
| 548 | major = LIBCEC_UINT_TO_VERSION_MAJOR_OLD(version); |
| 549 | minor = LIBCEC_UINT_TO_VERSION_MINOR_OLD(version); |
| 550 | patch = LIBCEC_UINT_TO_VERSION_PATCH_OLD(version); |
| 551 | } |
| 552 | else |
| 553 | { |
| 554 | major = LIBCEC_UINT_TO_VERSION_MAJOR(version); |
| 555 | minor = LIBCEC_UINT_TO_VERSION_MINOR(version); |
| 556 | patch = LIBCEC_UINT_TO_VERSION_PATCH(version); |
| 557 | } |
| 558 | return StringUtils::Format("%u.%u.%u", major, minor, patch); |
| 559 | } |
| 560 | |
| 561 | static const char *ToString(const cec_abort_reason reason) |
| 562 | { |
nothing calls this directly
no outgoing calls
no test coverage detected