Kernel: Make sys_mmap log the correct prot value

This commit is contained in:
apio 2022-11-02 18:39:58 +01:00
parent 22740e69bf
commit 07e518c38f

View File

@ -23,7 +23,7 @@ static const char* format_prot(int prot)
prot_string[3] = 0; prot_string[3] = 0;
prot_string[0] = ((prot & PROT_READ) > 0) ? 'r' : '-'; prot_string[0] = ((prot & PROT_READ) > 0) ? 'r' : '-';
prot_string[1] = ((prot & PROT_WRITE) > 0) ? 'w' : '-'; prot_string[1] = ((prot & PROT_WRITE) > 0) ? 'w' : '-';
prot_string[2] = ((prot & PROT_WRITE) > 0) ? 'x' : '-'; prot_string[2] = ((prot & PROT_EXEC) > 0) ? 'x' : '-';
return prot_string; return prot_string;
} }