4.115
Last change
on this file since 98b785e was
7bd0dbc,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/15/09 at 15:02:43
|
2009-05-15 Joel Sherrill <joel.sherrill@…>
- libcsupport/Makefile.am, libcsupport/src/printk.c: Restructure to
make analysis and coverage easier. Now 100% covered.
- libcsupport/src/vprintk.c: New file.
|
-
Property mode set to
100644
|
File size:
796 bytes
|
Line | |
---|
1 | /* |
---|
2 | * (C) Copyright 1997 - |
---|
3 | * - NavIST Group - Real-Time Distributed Systems and Industrial Automation |
---|
4 | * |
---|
5 | * http://pandora.ist.utl.pt |
---|
6 | * |
---|
7 | * Instituto Superior Tecnico * Lisboa * PORTUGAL |
---|
8 | * |
---|
9 | * Disclaimer: |
---|
10 | * |
---|
11 | * This file is provided "AS IS" without warranty of any kind, either |
---|
12 | * expressed or implied. |
---|
13 | * |
---|
14 | * This code is based on code by: Jose Rufino - IST |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #if HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <stdarg.h> |
---|
24 | #include <stdio.h> |
---|
25 | #include <rtems/bspIo.h> |
---|
26 | |
---|
27 | /* |
---|
28 | * printk |
---|
29 | * |
---|
30 | * Kernel printf function requiring minimal infrastrure. |
---|
31 | */ |
---|
32 | void printk(const char *fmt, ...) |
---|
33 | { |
---|
34 | va_list ap; /* points to each unnamed argument in turn */ |
---|
35 | |
---|
36 | va_start(ap, fmt); /* make ap point to 1st unnamed arg */ |
---|
37 | vprintk(fmt, ap); |
---|
38 | va_end(ap); /* clean up when done */ |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.