Skip to content

Commit b1538fe

Browse files
committed
fixup! [LibOS] Fix syscall mmap function signature
Signed-off-by: Erica Fu <[email protected]>
1 parent 36ca824 commit b1538fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libos/src/sys/libos_mmap.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ long libos_syscall_mmap(unsigned long addr, unsigned long length, unsigned long
260260
if (ret == 0) {
261261
int update_valid_length_ret = bkeep_vma_update_valid_length((void*)addr, valid_length);
262262
if (update_valid_length_ret < 0) {
263-
log_error("[mmap] Failed to update valid length to %lu of bookkeeped memory %#lx-%#lx!",
264-
valid_length, addr, addr + length);
263+
log_error("[mmap] Failed to update valid length to %lu of bookkeeped memory at "
264+
"%#lx-%#lx!", valid_length, addr, addr + length);
265265
BUG();
266266
}
267267
}
@@ -270,8 +270,8 @@ long libos_syscall_mmap(unsigned long addr, unsigned long length, unsigned long
270270
if (ret < 0) {
271271
void* tmp_vma = NULL;
272272
if (bkeep_munmap((void*)addr, length, /*is_internal=*/false, &tmp_vma) < 0) {
273-
log_error("[mmap] Failed to remove bookkeeped memory that was not allocated at %#lx-%#lx!",
274-
addr, addr + length);
273+
log_error("[mmap] Failed to remove bookkeeped memory that was not allocated at "
274+
"%#lx-%#lx!", addr, addr + length);
275275
BUG();
276276
}
277277
bkeep_remove_tmp_vma(tmp_vma);

0 commit comments

Comments
 (0)