diff --git a/src/system/libroot/posix/stdlib/strtod.c b/src/system/libroot/posix/stdlib/strtod.c index 6040732092..0de293ca79 100644 --- a/src/system/libroot/posix/stdlib/strtod.c +++ b/src/system/libroot/posix/stdlib/strtod.c @@ -130,8 +130,13 @@ typedef int32_t Long; typedef u_int32_t ULong; #ifdef DEBUG -# include -# define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);} +# if _KERNEL_MODE +# include +# define Bug(x) {dprintf("%s\n", x);} +# else +# include +# define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);} +# endif #endif #include