Changeset 01b0755 in rtems


Ignore:
Timestamp:
Aug 14, 2013, 7:56:27 AM (6 years ago)
Author:
Nick Withers <nick.withers@…>
Branches:
4.11, master
Children:
6931037
Parents:
2a2f559
git-author:
Nick Withers <nick.withers@…> (08/14/13 07:56:27)
git-committer:
Chris Johns <chrisj@…> (08/14/13 18:57:56)
Message:

Expose rtems_verror()

Location:
cpukit/libcsupport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/error.h

    r2a2f559 r01b0755  
    55 *
    66 * Defines and externs for rtems error reporting
    7  *
    8  * Currently just used by RTEMS monitor.
    97 *
    108 * These routines provide general purpose error reporting.
     
    5351#include <rtems/score/interr.h>
    5452
     53#include <stdarg.h>
     54
    5555#ifdef __cplusplus
    5656extern "C" {
     
    6868
    6969/*
    70  * rtems_error() and rtems_panic() support
     70 * rtems_error(), rtems_verror() and rtems_panic() support
    7171 */
    7272
     
    107107
    108108/**
     109 *  @brief Report an Error
     110 *
     111 *  @param[in] error_code can be specified as any of the following:
     112 *  RTEMS_ERROR_ERRNO       -- include errno text in output
     113 *  RTEMS_ERROR_PANIC       -- halts local system after output
     114 *  RTEMS_ERROR_ABORT       -- abort after output
     115 *
     116 *  @param[in] printf_format is a normal printf(3) format string,
     117 *  with its concommitant arguments
     118 *  @param[in] @p arglist is a varargs list corresponding to
     119 *  printf_format
     120 *
     121 *  @return the number of characters written.
     122 */
     123int rtems_verror(
     124  rtems_error_code_t  error_code,
     125  const char         *printf_format,
     126  va_list             arglist
     127);
     128
     129/**
    109130 * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
    110131 */
  • cpukit/libcsupport/src/error.c

    r2a2f559 r01b0755  
    6767
    6868
    69 static int rtems_verror(
     69int rtems_verror(
    7070  rtems_error_code_t  error_flag,
    7171  const char         *printf_format,
Note: See TracChangeset for help on using the changeset viewer.