Subject: [PATCH 4/4] Wrong variable used.

From: Rumko <[email-masked]>
Date: Wed, 14 Apr 2010 21:09:48 +0000

---
 sys/vfs/tmpfs/tmpfs_vnops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sys/vfs/tmpfs/tmpfs_vnops.c b/sys/vfs/tmpfs/tmpfs_vnops.c
index 936f27d..ce250d8 100644
--- a/sys/vfs/tmpfs/tmpfs_vnops.c
+++ b/sys/vfs/tmpfs/tmpfs_vnops.c
@@ -608,7 +608,7 @@ tmpfs_write (struct vop_write_args *ap)
 		}
 
 		if (bp->b_error) {
-			kprintf("tmpfs_write bwrite error %d\n", error);
+			kprintf("tmpfs_write bwrite error %d\n", bp->b_error);
 			break;
 		}
 	}
-- 
1.6.6.2