Subversion Repositories HelenOS

Rev

Rev 2290 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2290 Rev 2326
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (c) 2006 Martin Decky
2
 * Copyright (c) 2007 Michal Kebrt
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#ifndef KERN_arm32_DEBUG_PRINT_PRINTF_H_
29
/** @addtogroup arm32
-
 
30
 * @{
-
 
31
 */
30
#define KERN_arm32_DEBUG_PRINT_PRINTF_H_
32
/** @file
-
 
33
 */
31
 
34
 
32
#define INT8    1
35
#ifndef KERN_arm32_DEBUG_PRINT_H_
33
#define INT16   2
-
 
34
#define INT32   4
36
#define KERN_arm32_DEBUG_PRINT_H_
35
#define INT64   8
-
 
36
 
37
 
37
#include <stdarg.h>
38
#include <stdarg.h>
38
#include <arch/types.h>
39
#include <arch/types.h>
39
 
40
 
40
extern void debug_puts(const char *str);
41
extern void debug_puts(const char *str);
41
extern void debug_printf(const char *fmt, ...);
42
extern void debug_printf(const char *fmt, ...);
42
extern int debug_write(const char *str, size_t count, void *unused);
-
 
43
 
43
 
44
 
44
 
45
#ifdef CONFIG_DEBUG
45
#ifdef CONFIG_DEBUG
46
#   define dprintf(arg1...) debug_printf(arg1)
46
#   define dprintf(arg1...) debug_printf(arg1)
47
#   define dputs(arg1) debug_puts(arg1)
47
#   define dputs(arg1) debug_puts(arg1)
Line 49... Line 49...
49
#   define dprintf(arg1...)
49
#   define dprintf(arg1...)
50
#   define dputs(arg1)
50
#   define dputs(arg1)
51
#endif
51
#endif
52
 
52
 
53
#endif
53
#endif
-
 
54
 
-
 
55
 
-
 
56
/** @}
-
 
57
 */