Implement a UID formatting function

This commit is contained in:
Robbert van der Helm
2020-12-17 14:20:49 +01:00
parent f71c7a3895
commit 78f9203378
3 changed files with 23 additions and 4 deletions
+1 -4
View File
@@ -24,10 +24,7 @@ void Vst3Logger::log_unknown_interface(
const std::string& where,
const std::optional<Steinberg::FUID>& uid) {
if (BOOST_UNLIKELY(logger.verbosity >= Logger::Verbosity::most_events)) {
char uid_string[128] = "<invalid_pointer>";
if (uid) {
uid->print(uid_string, Steinberg::FUID::UIDPrintStyle::kCLASS_UID);
}
std::string uid_string = uid ? format_uid(*uid) : "<unknown_pointer>";
std::ostringstream message;
message << "[unknown interface] " << where << ": " << uid_string;