diff options
Diffstat (limited to 'src/emu/audit.cpp')
-rw-r--r-- | src/emu/audit.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/emu/audit.cpp b/src/emu/audit.cpp index b1016967931..7f371ee56c8 100644 --- a/src/emu/audit.cpp +++ b/src/emu/audit.cpp @@ -347,36 +347,36 @@ media_auditor::summary media_auditor::summarize(const char *name, std::string *o // output the game name, file name, and length (if applicable) if (output != nullptr) { - strcatprintf(*output,"%-12s: %s", name, record->name()); + output->append(string_format("%-12s: %s", name, record->name())); if (record->expected_length() > 0) - strcatprintf(*output," (%" I64FMT "d bytes)", record->expected_length()); - strcatprintf(*output," - "); + output->append(string_format(" (%d bytes)", record->expected_length())); + output->append(" - "); } // use the substatus for finer details switch (record->substatus()) { case audit_record::SUBSTATUS_GOOD_NEEDS_REDUMP: - if (output != nullptr) strcatprintf(*output,"NEEDS REDUMP\n"); + if (output != nullptr) output->append("NEEDS REDUMP\n"); best_new_status = BEST_AVAILABLE; break; case audit_record::SUBSTATUS_FOUND_NODUMP: - if (output != nullptr) strcatprintf(*output,"NO GOOD DUMP KNOWN\n"); + if (output != nullptr) output->append("NO GOOD DUMP KNOWN\n"); best_new_status = BEST_AVAILABLE; break; case audit_record::SUBSTATUS_FOUND_BAD_CHECKSUM: if (output != nullptr) { - strcatprintf(*output,"INCORRECT CHECKSUM:\n"); - strcatprintf(*output,"EXPECTED: %s\n", record->expected_hashes().macro_string().c_str()); - strcatprintf(*output," FOUND: %s\n", record->actual_hashes().macro_string().c_str()); + output->append("INCORRECT CHECKSUM:\n"); + output->append(string_format("EXPECTED: %s\n", record->expected_hashes().macro_string().c_str())); + output->append(string_format(" FOUND: %s\n", record->actual_hashes().macro_string().c_str())); } break; case audit_record::SUBSTATUS_FOUND_WRONG_LENGTH: - if (output != nullptr) strcatprintf(*output,"INCORRECT LENGTH: %" I64FMT "d bytes\n", record->actual_length()); + if (output != nullptr) output->append(string_format("INCORRECT LENGTH: %d bytes\n", record->actual_length())); break; case audit_record::SUBSTATUS_NOT_FOUND: @@ -384,20 +384,20 @@ media_auditor::summary media_auditor::summarize(const char *name, std::string *o { device_t *shared_device = record->shared_device(); if (shared_device == nullptr) - strcatprintf(*output,"NOT FOUND\n"); + output->append("NOT FOUND\n"); else - strcatprintf(*output,"NOT FOUND (%s)\n", shared_device->shortname()); + output->append(string_format("NOT FOUND (%s)\n", shared_device->shortname())); } best_new_status = NOTFOUND; break; case audit_record::SUBSTATUS_NOT_FOUND_NODUMP: - if (output != nullptr) strcatprintf(*output,"NOT FOUND - NO GOOD DUMP KNOWN\n"); + if (output != nullptr) output->append("NOT FOUND - NO GOOD DUMP KNOWN\n"); best_new_status = BEST_AVAILABLE; break; case audit_record::SUBSTATUS_NOT_FOUND_OPTIONAL: - if (output != nullptr) strcatprintf(*output,"NOT FOUND BUT OPTIONAL\n"); + if (output != nullptr) output->append("NOT FOUND BUT OPTIONAL\n"); best_new_status = BEST_AVAILABLE; break; |