broken regression/acct for several years

pluknet pluknet at gmail.com
Sun Aug 16 05:22:39 UTC 2009


2009/8/16 pluknet <pluknet at gmail.com>:
> Hi.
>
> This commit - kern_acct.c,v1,94 / svn r172023 - broke
> regression/acct just before 7.0 was out by inclusion
> kernel log() function call that requires <sys/syslog.h> include,
> and some magic with kernel/userland side of syslog() since
> log() on userland side is  not present.
>
> It could be fixed by changing log() with simple printf() and
> adding <sys/limits.h> specially for regression test to
[Sorry, wrong button pressed]
to fix "LONG_MAX undefined", so it would be like:
convert.c: ../../../sys/kern/kern_acct.c
-            sed -n '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >$@
+           echo "#include <sys/limits.h>" > $@
+           sed -n '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >>$@

or by reverting r172023.

Thanks.

-- 
wbr,
pluknet


More information about the freebsd-current mailing list