SWDEV-378006 - Adding a new guarantee macro to support printing args.

Change-Id: I9c838644e31a84d96a44b2bd10525a08d805a047
This commit is contained in:
kjayapra-amd authored and Karthik Jayaprakash committed 2023-01-21 06:26:50 -05:00
1 parent 8c421b62f2
commit b968394b4e
5 files changed
+15 -35

No files matched your search

-11
View File
@@ -49,17 +49,6 @@ extern "C" void breakpoint(void) {
}
//! \endcond
// ================================================================================================
void report_fatal(const char* file, int line, const char* message) {
// FIXME_lmoriche: Obfuscate the message string
#if (defined(DEBUG))
fprintf(outFile, "%s:%d: %s\n", file, line, message);
#else
fprintf(outFile, "%s\n", message);
#endif
::abort();
}
// ================================================================================================
void report_warning(const char* message) { fprintf(outFile, "Warning: %s\n", message); }