Detect more hardware errors

This commit is contained in:
Andrea Mazzoleni 2026-02-22 14:58:06 +01:00
parent f5c07e07f5
commit 077cf5de01
6 changed files with 160 additions and 119 deletions

View file

@ -70,6 +70,20 @@ unsigned char random_u8(void);
*/
uint64_t random_u64(void);
/****************************************************************************/
/* error */
/**
* Return if the error is at hardware level
*/
int is_hw(int err);
/**
* Log errors with standard messages
*/
void log_fatal_errno(int err, const char* name);
void log_error_errno(int err, const char* name);
/****************************************************************************/
/* log */