Add hexdump lib function
[thunix.git] / include / thunix.h
blobee0e0569a4623b7f3d8fe6978175622397ac60e1
1 #ifndef _THUNIX_H
2 #define _THUNIX_H
4 #include <time.h>
6 #define pause() ({ \
7 while (1) \
8 ; \
9 })
11 #define DEBUG_ON 1
12 #define EXT2_DEBUG_ON 0
14 #define DEBUG(x) ( { \
15 if (DEBUG_ON) { \
16 printk("DEBUG (%s, %d): %s:",__FILE__,__LINE__,__FUNCTION__); \
17 x; \
18 } \
21 #define EXT2_DEBUG(x) ( { \
22 if (EXT2_DEBUG_ON) { \
23 printk("DBG (%s, %d): %s: ", \
24 __FILE__, __LINE__, __FUNCTION__); \
25 x; \
26 } \
29 #define CURRENT_TIME 0 /* Not yet */
31 /* for fs part */
32 #define RAM_EXT2_FS 1
36 extern int printk(char *fmt, ...);
37 extern void panic(char *);
39 extern unsigned long get_current_time(struct tm*);
41 #define LOG_PRINT printk
43 #endif /* thunix.h */