mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added file name and line number to LOG_ERROR_STR()
This commit is contained in:
parent
7584780dbf
commit
989fa21a21
@ -1118,6 +1118,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
|
|||||||
keys in the Setup/DVB menu
|
keys in the Setup/DVB menu
|
||||||
for making the Recordings menu display the length (in hours:minutes) of each recording
|
for making the Recordings menu display the length (in hours:minutes) of each recording
|
||||||
for fixing handling DVB subtitles and implementing decoding textual DVB subtitles
|
for fixing handling DVB subtitles and implementing decoding textual DVB subtitles
|
||||||
|
for adding file name and line number to LOG_ERROR_STR()
|
||||||
|
|
||||||
Ralf Klueber <ralf.klueber@vodafone.com>
|
Ralf Klueber <ralf.klueber@vodafone.com>
|
||||||
for reporting a bug in cutting a recording if there is only a single editing mark
|
for reporting a bug in cutting a recording if there is only a single editing mark
|
||||||
|
1
HISTORY
1
HISTORY
@ -6777,3 +6777,4 @@ Video Disk Recorder Revision History
|
|||||||
- Removed the '.pl' suffix from all scripts (thanks to Ville Skyttä).
|
- Removed the '.pl' suffix from all scripts (thanks to Ville Skyttä).
|
||||||
- Changed the default location for the LIRC socket to /var/run/lirc/lircd (thanks
|
- Changed the default location for the LIRC socket to /var/run/lirc/lircd (thanks
|
||||||
to Ville Skyttä).
|
to Ville Skyttä).
|
||||||
|
- Added file name and line number to LOG_ERROR_STR() (thanks to Rolf Ahrenberg).
|
||||||
|
4
tools.h
4
tools.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#ifndef __TOOLS_H
|
||||||
@ -36,7 +36,7 @@ extern int SysLogLevel;
|
|||||||
#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(LOG_ERR, a) : void() )
|
#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 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
|
#define SECSINDAY 86400
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user