Add a debug message for unsupported CPU models
It can be difficult to know when an error is caused by an unsupported
CPU model, so this adds a debug print to show when that happens.
Tested:
Confirmed that the message prints for unhandled CPU models.
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: Ia74c0efaafbe68aca6835fc6d3ba73c1367346bc
diff --git a/include/host_error_monitor.hpp b/include/host_error_monitor.hpp
index 294dbef..d13202c 100644
--- a/include/host_error_monitor.hpp
+++ b/include/host_error_monitor.hpp
@@ -187,6 +187,11 @@
errPinCPUs[cpu] = (errpinsts & (1 << errPin)) != 0;
break;
}
+ default:
+ {
+ std::cerr << "Unsupported CPU Model: 0x" << std::hex
+ << static_cast<int>(model) << std::dec << "\n";
+ }
}
}
}