summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-12-04 14:48:53 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2011-12-04 14:48:53 +0100
commit989fa21a21bc68bdb8af3a4421169e65ebee356e (patch)
tree117fe79a0e98ba80abc937e21bf43052b12116d7 /tools.h
parent7584780dbf4e7bc8446be29e17d8850f6ca82d02 (diff)
downloadvdr-989fa21a21bc68bdb8af3a4421169e65ebee356e.tar.gz
vdr-989fa21a21bc68bdb8af3a4421169e65ebee356e.tar.bz2
Added file name and line number to LOG_ERROR_STR()
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.h b/tools.h
index 5b436fd4..86e8fb06 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 2.13 2011/12/04 13:38:17 kls Exp $
+ * $Id: tools.h 2.14 2011/12/04 14:48:03 kls Exp $
*/
#ifndef __TOOLS_H
@@ -36,7 +36,7 @@ extern int SysLogLevel;
#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(LOG_ERR, a) : void() )
#define LOG_ERROR esyslog("ERROR (%s,%d): %m", __FILE__, __LINE__)
-#define LOG_ERROR_STR(s) esyslog("ERROR: %s: %m", s)
+#define LOG_ERROR_STR(s) esyslog("ERROR (%s,%d): %s: %m", __FILE__, __LINE__, s)
#define SECSINDAY 86400