Module Name:    src
Committed By:   christos
Date:           Sat Jan  2 17:44:21 UTC 2016

Modified Files:
        src/usr.bin/xlint/lint1: decl.c

Log Message:
print the length on error.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/xlint/lint1/decl.c

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/xlint/lint1/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.60 src/usr.bin/xlint/lint1/decl.c:1.61
--- src/usr.bin/xlint/lint1/decl.c:1.60	Tue Oct 13 16:25:21 2015
+++ src/usr.bin/xlint/lint1/decl.c	Sat Jan  2 12:44:21 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.60 2015/10/13 20:25:21 christos Exp $ */
+/* $NetBSD: decl.c,v 1.61 2016/01/02 17:44:21 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.60 2015/10/13 20:25:21 christos Exp $");
+__RCSID("$NetBSD: decl.c,v 1.61 2016/01/02 17:44:21 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -901,7 +901,7 @@ length(type_t *tp, const char *name)
 	default:
 		elsz = size(tp->t_tspec);
 		if (elsz <= 0)
-			LERROR("length()");
+			LERROR("length(%d)", elsz);
 		break;
 	}
 	return (elem * elsz);

Reply via email to