File: 41_syntaxwhere.dpatch

package info (click to toggle)
bandwidthd 2.0.1%2Bcvs20090917-4.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,064 kB
  • ctags: 560
  • sloc: sh: 13,357; ansic: 2,743; php: 1,235; yacc: 216; makefile: 160; lex: 36; sql: 27
file content (21 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## 41_syntaxwhere.dpatch by Andreas Henriksson <andreas@fatal.se>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Say which file the syntax error is in, to make logged error message 
## DP: clear.

@DPATCH@
--- bandwidthd-2.0.1+cvs20050208.orig/conf.y
+++ bandwidthd-2.0.1+cvs20050208/conf.y
@@ -20,8 +20,8 @@
 
 void bdconfig_error(const char *str)
     {
-    fprintf(stderr, "Syntax Error \"%s\" on line %d\n", str, LineNo);
-	syslog(LOG_ERR, "Syntax Error \"%s\" on line %d", str, LineNo);
+    fprintf(stderr, "Syntax Error \"%s\" on line %d in bandwidthd.conf\n", str, LineNo);
+	syslog(LOG_ERR, "Syntax Error \"%s\" on line %d in bandwidthd.conf", str, LineNo);
 	exit(1);
     }