RTEMS
cpukit
libcsupport
src
printk.c
Go to the documentation of this file.
1
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
#ifdef HAVE_CONFIG_H
25
#include "config.h"
26
#endif
27
28
#include <stdarg.h>
29
#include <stdio.h>
30
#include <
rtems/bspIo.h
>
31
35
int
printk
(
const
char
*fmt, ...)
36
{
37
va_list ap;
/* points to each unnamed argument in turn */
38
int
len;
39
va_start(ap, fmt);
/* make ap point to 1st unnamed arg */
40
len =
vprintk
(fmt, ap);
41
va_end(ap);
/* clean up when done */
42
return
len;
43
}
printk
int printk(const char *fmt,...)
Definition:
printk.c:35
vprintk
int vprintk(const char *fmt, va_list ap)
Variable Argument printk()
Definition:
vprintk.c:29
bspIo.h
Interface to Kernel Print Methods.
Generated by
1.8.14