forked from espressif/esp-idf
esp32: esp_err_to_name_r: print error code as hex and decimal
This commit is contained in:
@@ -473,7 +473,7 @@ const char *esp_err_to_name_r(esp_err_t code, char *buf, size_t buflen)
|
||||
return buf;
|
||||
}
|
||||
|
||||
snprintf(buf, buflen, "Unknown error %d", code);
|
||||
snprintf(buf, buflen, "%s 0x%x(%d)", esp_unknown_msg, code, code);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
@@ -58,7 +58,7 @@ const char *esp_err_to_name_r(esp_err_t code, char *buf, size_t buflen)
|
||||
return buf;
|
||||
}
|
||||
|
||||
snprintf(buf, buflen, "Unknown error %d", code);
|
||||
snprintf(buf, buflen, "%s 0x%x(%d)", esp_unknown_msg, code, code);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user