misc: Fix improper panic() calls
diff --git a/common/lib/uri.c b/common/lib/uri.c
index 22245259..ce2a5506 100644
--- a/common/lib/uri.c
+++ b/common/lib/uri.c
@@ -148,7 +148,7 @@ static struct file_handle *uri_tftp_dispatch(char *root, char *path) {
ip = 0;
} else {
if (inet_pton(root, &ip)) {
- panic("tftp: Invalid ipv4 address: %s", root);
+ panic(true, "tftp: Invalid ipv4 address: %s", root);
}
}
@@ -194,7 +194,7 @@ struct file_handle *uri_open(char *uri) {
uri_resolve(uri, &resource, &root, &path);
if (resource == NULL) {
- panic("No resource specified for URI `%s`.", uri);
+ panic(true, "No resource specified for URI `%s`.", uri);
}
bool compressed = false;
diff --git a/common/sys/exceptions.s2.c b/common/sys/exceptions.s2.c
index a3551a3b..96444ce0 100644
--- a/common/sys/exceptions.s2.c
+++ b/common/sys/exceptions.s2.c
@@ -41,7 +41,7 @@ static const char *exception_names[] = {
void except(uint32_t exception, uint32_t error_code, uint32_t ebp, uint32_t eip) {
(void)ebp;
- panic("%s at %x. Error code: %x", exception_names[exception], eip, error_code);
+ panic(false, "%s at %x. Error code: %x", exception_names[exception], eip, error_code);
}
#endif
