uvn_reference(): correct printf(9) argument order
authorcheloha <cheloha@openbsd.org>
Tue, 7 Dec 2021 02:58:46 +0000 (02:58 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 7 Dec 2021 02:58:46 +0000 (02:58 +0000)
Thread: https://marc.info/?l=openbsd-tech&m=163884527530326&w=2

ok deraadt@

sys/uvm/uvm_vnode.c

index 3cbdd52..ed1ba9f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_vnode.c,v 1.119 2021/10/23 14:42:08 mpi Exp $     */
+/*     $OpenBSD: uvm_vnode.c,v 1.120 2021/12/07 02:58:46 cheloha Exp $ */
 /*     $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $       */
 
 /*
@@ -275,8 +275,8 @@ uvn_reference(struct uvm_object *uobj)
 
 #ifdef DEBUG
        if ((uvn->u_flags & UVM_VNODE_VALID) == 0) {
-               printf("uvn_reference: ref=%d, flags=0x%x\n", uvn->u_flags,
-                   uobj->uo_refs);
+               printf("uvn_reference: ref=%d, flags=0x%x\n",
+                   uobj->uo_refs, uvn->u_flags);
                panic("uvn_reference: invalid state");
        }
 #endif