source: rtems/cpukit/libcsupport/src/printk.c @ c499856

4.115
Last change on this file since c499856 was 41b590f9, checked in by Alex Ivanov <alexivanov97@…>, on 12/13/12 at 18:13:19

libcsupport: Doxygen enhancement task #9

  • Property mode set to 100644
File size: 857 bytes
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 */
35void 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.