Last change
on this file was
d999f865,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/29/21 at 12:48:40
|
rtems: Generate <rtems/bspIo.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.
Place the group into the I/O Manager group. Add all source files to the
group.
Update #3899.
Update #3993.
Update #4482.
|
-
Property mode set to
100644
|
File size:
936 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup RTEMSAPIKernelCharIO |
---|
5 | * |
---|
6 | * @brief This source file contains the implementation of printk(). |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * (C) Copyright 1997 - |
---|
11 | * - NavIST Group - Real-Time Distributed Systems and Industrial Automation |
---|
12 | * |
---|
13 | * http://pandora.ist.utl.pt |
---|
14 | * |
---|
15 | * Instituto Superior Tecnico * Lisboa * PORTUGAL |
---|
16 | * |
---|
17 | * Disclaimer: |
---|
18 | * |
---|
19 | * This file is provided "AS IS" without warranty of any kind, either |
---|
20 | * expressed or implied. |
---|
21 | * |
---|
22 | * This code is based on code by: Jose Rufino - IST |
---|
23 | */ |
---|
24 | |
---|
25 | #ifdef HAVE_CONFIG_H |
---|
26 | #include "config.h" |
---|
27 | #endif |
---|
28 | |
---|
29 | #include <stdarg.h> |
---|
30 | #include <stdio.h> |
---|
31 | #include <rtems/bspIo.h> |
---|
32 | |
---|
33 | /** |
---|
34 | * Kernel printf function requiring minimal infrastructure. |
---|
35 | */ |
---|
36 | int printk(const char *fmt, ...) |
---|
37 | { |
---|
38 | va_list ap; /* points to each unnamed argument in turn */ |
---|
39 | int len; |
---|
40 | va_start(ap, fmt); /* make ap point to 1st unnamed arg */ |
---|
41 | len = vprintk(fmt, ap); |
---|
42 | va_end(ap); /* clean up when done */ |
---|
43 | return len; |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.