Re: fix compilation failure when sr_debug is defined.

2018-07-20 Thread Theo de Raadt
I am very unhappy to see use of #undef It doesn't feel like the right approach. Karel Gardas wrote: > > > Hello, > > following small patch fixes compilation failure when SR_DEBUG is defined in > softraidvar.h which results in definition of DPRINTF which results in error > about already

Re: fix compilation failure when sr_debug is defined.

2018-07-19 Thread Karel Gardas
Hello, correct version of the patch is below. The previos one was wrong. Thanks, Karel Index: sys/arch/amd64/amd64/machdep.c === RCS file: /cvs/src/sys/arch/amd64/amd64/machdep.c,v retrieving revision 1.248 diff -u -p -u -r1.248

fix compilation failure when sr_debug is defined.

2018-07-18 Thread Karel Gardas
Hello, following small patch fixes compilation failure when SR_DEBUG is defined in softraidvar.h which results in definition of DPRINTF which results in error about already defined macro in machdep.c Index: arch/amd64/amd64/machdep.c