summaryrefslogtreecommitdiff
path: root/shared/logger.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-25 10:21:09 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-25 10:21:09 +1000
commitb4e986c9a63d381dc9b0e35410567560f789b86e (patch)
tree3109713c733a7947b0b3b424037cf04493f26d48 /shared/logger.h
downloadQemuMacDrivers-b4e986c9a63d381dc9b0e35410567560f789b86e.zip
QemuMacDrivers-b4e986c9a63d381dc9b0e35410567560f789b86e.tar.gz
QemuMacDrivers-b4e986c9a63d381dc9b0e35410567560f789b86e.tar.bz2
Initial commit of video driver
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'shared/logger.h')
-rw-r--r--shared/logger.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/shared/logger.h b/shared/logger.h
new file mode 100644
index 0000000..6a65287
--- /dev/null
+++ b/shared/logger.h
@@ -0,0 +1,32 @@
+/*
+ * Creation Date: <1999/03/20 07:38:38 samuel>
+ * Time-stamp: <2002/07/20 19:29:22 samuel>
+ *
+ * <logger.h>
+ *
+ * Interface to some logging functions
+ *
+ * Copyright (C) 1999, 2002 Samuel Rydh (samuel@ibrium.se)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation
+ *
+ */
+
+#ifndef __LOGGER_H_
+#define __LOGGER_H_
+
+#include <Types.h>
+
+#define DBG(x) do {x;} while(0)
+
+#ifdef DEBUG_OSI
+extern void lprintf( char *fmt,... );
+extern OSStatus CheckStatus( OSStatus value, char *message);
+#else
+static inline void lprintf( char *fmt,... ) { }
+static inline OSStatus CheckStatus( OSStatus value, char *message) { return value; }
+#endif
+
+#endif