Code sync
[external/hplip.git] / packaging / hplip-syslog-fix-debug-messages-to-error.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## hplip-syslog-fix-debug-messages-to-error.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hplip-3.11.7~/prnt/hpcups/CommonDefinitions.h hplip-3.11.7/prnt/hpcups/CommonDefinitions.h
9 --- hplip-3.11.7~/prnt/hpcups/CommonDefinitions.h       2011-07-24 20:58:05.000000000 +0200
10 +++ hplip-3.11.7/prnt/hpcups/CommonDefinitions.h        2011-07-28 10:22:02.706223578 +0200
11 @@ -68,7 +68,7 @@
12  #define _STRINGIZE(x) #x
13  #define STRINGIZE(x) _STRINGIZE(x)
14  
15 -#define dbglog(args...) {syslog(LOG_ERR, __FILE__ " " STRINGIZE(__LINE__) ": " args); \
16 +#define dbglog(args...) {syslog(LOG_DEBUG, __FILE__ " " STRINGIZE(__LINE__) ": " args); \
17  fprintf(stderr, __FILE__ " " STRINGIZE(__LINE__) ": " args);}
18  
19