git: 8fa2644171ce - stable/13 - uiomove_object: hide diagnostic under bootverbose
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jan 2023 03:23:22 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8fa2644171cea455dbe8e24e7a0902066c3cf1b7 commit 8fa2644171cea455dbe8e24e7a0902066c3cf1b7 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-10-23 11:36:17 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-01-20 03:18:49 +0000 uiomove_object: hide diagnostic under bootverbose Tested by: pho (cherry picked from commit 7ec4b29b086b67b8c778d2bc50c90e9e0655c03e) --- sys/kern/uipc_shm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c index 2bd7c3a038df..4f06d9bea40e 100644 --- a/sys/kern/uipc_shm.c +++ b/sys/kern/uipc_shm.c @@ -221,8 +221,10 @@ uiomove_object_page(vm_object_t obj, size_t len, struct uio *uio) VM_ALLOC_NORMAL | VM_ALLOC_SBUSY | VM_ALLOC_IGN_SBUSY); if (rv != VM_PAGER_OK) { VM_OBJECT_WUNLOCK(obj); - printf("uiomove_object: vm_obj %p idx %jd pager error %d\n", - obj, idx, rv); + if (bootverbose) { + printf("uiomove_object: vm_obj %p idx %jd " + "pager error %d\n", obj, idx, rv); + } return (EIO); } VM_OBJECT_WUNLOCK(obj);