Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 print the length on error.
details: https://anonhg.NetBSD.org/src/rev/e8209d3ea83f
branches: trunk
changeset: 342635:e8209d3ea83f
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 02 17:44:21 2016 +0000
description:
print the length on error.
diffstat:
usr.bin/xlint/lint1/decl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2a573ce30188 -r e8209d3ea83f usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Sat Jan 02 16:55:46 2016 +0000
+++ b/usr.bin/xlint/lint1/decl.c Sat Jan 02 17:44:21 2016 +0000
@@ -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 @@
default:
elsz = size(tp->t_tspec);
if (elsz <= 0)
- LERROR("length()");
+ LERROR("length(%d)", elsz);
break;
}
return (elem * elsz);
Home |
Main Index |
Thread Index |
Old Index