1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added format check to syslog_with_tid()

This commit is contained in:
Klaus Schmidinger 2006-04-16 10:43:22 +02:00
parent 1354141eab
commit 53819a9aff
2 changed files with 3 additions and 2 deletions

View File

@ -4599,3 +4599,4 @@ Video Disk Recorder Revision History
directly into the "Edit timer" menu in order to allow the user to make further directly into the "Edit timer" menu in order to allow the user to make further
changes to timer parameters before the actual recording starts (inspired by changes to timer parameters before the actual recording starts (inspired by
Christian Wieninger's "epgsearch" plugin). Christian Wieninger's "epgsearch" plugin).
- Added format check to syslog_with_tid().

View File

@ -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 1.92 2006/02/04 14:21:08 kls Exp $ * $Id: tools.h 1.93 2006/04/16 10:40:45 kls Exp $
*/ */
#ifndef __TOOLS_H #ifndef __TOOLS_H
@ -52,7 +52,7 @@ template<class T> inline int sgn(T a) { return a < 0 ? -1 : a > 0 ? 1 : 0; }
template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; } template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }
#endif #endif
void syslog_with_tid(int priority, const char *format, ...); void syslog_with_tid(int priority, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
#define BCDCHARTOINT(x) (10 * ((x & 0xF0) >> 4) + (x & 0xF)) #define BCDCHARTOINT(x) (10 * ((x & 0xF0) >> 4) + (x & 0xF))
int BCD2INT(int x); int BCD2INT(int x);