Hi Marc, > > From: Leo Ruan <tingquan.ruan@xxxxxxxxxxxx> > > > > If you have an application stderr shall not be used by libsocketcan > > you can disable all error logging by defining DISABLE_ERROR_LOG. > > > > Signed-off-by: Leo Ruan <tingquan.ruan@xxxxxxxxxxxx> > > Signed-off-by: Mark Jonas <mark.jonas@xxxxxxxxxxxx> > > --- > > src/libsocketcan.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/src/libsocketcan.c b/src/libsocketcan.c > > index c4b95d9..60500cd 100644 > > --- a/src/libsocketcan.c > > +++ b/src/libsocketcan.c > > @@ -36,6 +36,12 @@ > > > > #include <libsocketcan.h> > > > > +/* Define DISABLE_ERROR_LOG to disable printing of error messages to > stderr. */ > > +#ifdef DISABLE_ERROR_LOG > > +#define perror(x) > > +#define fprintf(...) > > +#endif > > + > > #define parse_rtattr_nested(tb, max, rta) \ > > (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta))) > > > > > > Can you add a configure switch for this? We'll have a look at it. Greetings, Mark Building Technologies, Panel Software Fire (BT-FIR/ENG1) Bosch Sicherheitssysteme GmbH | Postfach 11 11 | 85626 Grasbrunn | GERMANY | www.boschsecurity.com Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 23118 Aufsichtsratsvorsitzender: Stefan Hartung; Geschäftsführung: Tanja Rückert, Andreas Bartz, Thomas Quante, Bernhard Schuster ��.n��������+%������w��{.n�����{����*jg��������ݢj����G�������j:+v���w�m������w�������h�����٥