Skip to content
Snippets Groups Projects
Commit 8c1a8688 authored by adrian.spycher's avatar adrian.spycher
Browse files

chore: change perror into err

parent 8f9642b3
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ int main(int argc, char* argv[]) ...@@ -125,7 +125,7 @@ int main(int argc, char* argv[])
// Get the file size using fstat // Get the file size using fstat
struct stat st; struct stat st;
if (fstat(binfd, &st) < 0) perror("Error getting file size"); if (fstat(binfd, &st) < 0) err(1, "Error getting file size");
// Check if the file size exceeds the available memory // Check if the file size exceeds the available memory
if (st.st_size > RAM_SIZE) err(1, "Error: GuestOS binary size exceeds 512KB\n"); if (st.st_size > RAM_SIZE) err(1, "Error: GuestOS binary size exceeds 512KB\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment