Module Name:    src
Committed By:   mrg
Date:           Thu Dec 22 22:41:02 UTC 2016

Modified Files:
        src/usr.bin/pmap: pmap.h

Log Message:
add the member name to an error string so we know what object failed
while being requested.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/pmap/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/pmap/pmap.h
diff -u src/usr.bin/pmap/pmap.h:1.8 src/usr.bin/pmap/pmap.h:1.9
--- src/usr.bin/pmap/pmap.h:1.8	Mon Apr 13 00:27:38 2009
+++ src/usr.bin/pmap/pmap.h	Thu Dec 22 22:41:02 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.h,v 1.8 2009/04/13 00:27:38 lukem Exp $ */
+/*	$NetBSD: pmap.h,v 1.9 2016/12/22 22:41:02 mrg Exp $ */
 
 /*
  * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -95,8 +95,8 @@
 	((size_t)kvm_read((kd), (addr), (dst), (sz)) == (size_t)(sz))
 #define _KDEREF(kd, addr, dst, sz) do { \
 	if (!_KDEREFOK((kd), (addr), (dst), (sz))) \
-		errx(1, "trying to read %lu bytes from %lx: %s", \
-		    (unsigned long)(sz), (addr), kvm_geterr(kd)); \
+		errx(1, "trying to read %lu (%s) bytes from %lx: %s", \
+		    (unsigned long)(sz), #sz, (addr), kvm_geterr(kd)); \
 } while (0/*CONSTCOND*/)
 
 /* suck the data using the structure */

Reply via email to