ifdef out log() for a rainy day. Also explain to the mystified what it is for. Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- um-linux-2.4.27-paolo/arch/um/kernel/mem_user.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -puN arch/um/kernel/mem_user.c~ifdef-log arch/um/kernel/mem_user.c --- um-linux-2.4.27/arch/um/kernel/mem_user.c~ifdef-log 2005-04-15 11:12:59.000000000 +0200 +++ um-linux-2.4.27-paolo/arch/um/kernel/mem_user.c 2005-04-15 11:12:59.000000000 +0200 @@ -207,6 +207,12 @@ int protect_memory(unsigned long addr, u return(0); } +#if 0 +/* Debugging facility for dumping stuff out to the host, avoiding the timing + * problems that come with printf and breakpoints. + * Enable in case of emergency. + */ + int logging = 1; int logging_fd = -1; @@ -234,6 +240,7 @@ void log(char *fmt, ...) va_end(ap); write(logging_fd, logging_buf, strlen(logging_buf)); } +#endif /* * Overrides for Emacs so that we follow Linus's tabbing style. _