From 9fa346e6cc1751b7e75209ccc8b19709a8a8a1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 26 Apr 2008 21:37:17 +0000 Subject: [PATCH] - TRACE() def - rename private header git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25199 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/bus_managers/tty/tty.cpp | 10 ++++++++++ .../kernel/bus_managers/tty/{tty.h => tty_private.h} | 0 2 files changed, 10 insertions(+) rename src/add-ons/kernel/bus_managers/tty/{tty.h => tty_private.h} (100%) diff --git a/src/add-ons/kernel/bus_managers/tty/tty.cpp b/src/add-ons/kernel/bus_managers/tty/tty.cpp index 69ead11472..e2b5fb6718 100644 --- a/src/add-ons/kernel/bus_managers/tty/tty.cpp +++ b/src/add-ons/kernel/bus_managers/tty/tty.cpp @@ -14,6 +14,16 @@ #include "tty.h" +//#define TTY_TRACE +#ifdef TTY_TRACE +# define TRACE(x) dprintf x +#else +# define TRACE(x) ; +#endif + + + + status_t tty_open(struct ttyfile *, struct ddrover *, tty_service_func) { diff --git a/src/add-ons/kernel/bus_managers/tty/tty.h b/src/add-ons/kernel/bus_managers/tty/tty_private.h similarity index 100% rename from src/add-ons/kernel/bus_managers/tty/tty.h rename to src/add-ons/kernel/bus_managers/tty/tty_private.h