4.115
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Kernel Printf Function |
---|
5 | * @ingroup libcsupport |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * (C) Copyright 1997 - |
---|
10 | * - NavIST Group - Real-Time Distributed Systems and Industrial Automation |
---|
11 | * |
---|
12 | * http://pandora.ist.utl.pt |
---|
13 | * |
---|
14 | * Instituto Superior Tecnico * Lisboa * PORTUGAL |
---|
15 | * |
---|
16 | * Disclaimer: |
---|
17 | * |
---|
18 | * This file is provided "AS IS" without warranty of any kind, either |
---|
19 | * expressed or implied. |
---|
20 | * |
---|
21 | * This code is based on code by: Jose Rufino - IST |
---|
22 | */ |
---|
23 | |
---|
24 | #if HAVE_CONFIG_H |
---|
25 | #include "config.h" |
---|
26 | #endif |
---|
27 | |
---|
28 | #include <stdarg.h> |
---|
29 | #include <stdio.h> |
---|
30 | #include <rtems/bspIo.h> |
---|
31 | |
---|
32 | /** |
---|
33 | * Kernel printf function requiring minimal infrastructure. |
---|
34 | */ |
---|
35 | void printk(const char *fmt, ...) |
---|
36 | { |
---|
37 | va_list ap; /* points to each unnamed argument in turn */ |
---|
38 | |
---|
39 | va_start(ap, fmt); /* make ap point to 1st unnamed arg */ |
---|
40 | vprintk(fmt, ap); |
---|
41 | va_end(ap); /* clean up when done */ |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.