Browse code

- extra via debugging

Andrei Pelinescu-Onciul authored on 13/03/2002 18:20:14
Showing 2 changed files
... ...
@@ -8,7 +8,7 @@
8 8
 VERSION = 0
9 9
 PATCHLEVEL = 8
10 10
 SUBLEVEL = 7
11
-EXTRAVERSION = -7-ipaq
11
+EXTRAVERSION = -7-ipaq-viadbg
12 12
 
13 13
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
14 14
 OS = $(shell uname -s)
... ...
@@ -1729,7 +1729,15 @@ nextvia:
1729 1729
 	goto parse_again;
1730 1730
 
1731 1731
 error:
1732
-	LOG(L_ERR, "via parse error\n");
1732
+	if (end>buffer){
1733
+		LOG(L_ERR, "ERROR: parse_via on: <%.*s>\n", end-buffer, buffer);
1734
+	}
1735
+	if ((tmp>buffer)&&(tmp<end)){
1736
+		LOG(L_ERR, "ERROR: parse_via parse error, parsed so far:<%.*s>\n",
1737
+				tmp-buffer, buffer );
1738
+	}else{
1739
+		LOG(L_ERR, "ERROR: parse_via: via parse error\n");
1740
+	}
1733 1741
 	vb->error=VIA_PARSE_ERROR;
1734 1742
 	return tmp;
1735 1743
 }