misc: Fix improper panic() calls

This commit is contained in:
mintsuki 2022-08-28 20:16:27 +02:00
parent 6631b595f2
commit c528068ac7
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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