source: rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-printf-to-iprintf.h @ 70555d5

55-freebsd-126-freebsd-12
Last change on this file since 70555d5 was 8d4bab3, checked in by Sebastian Huber <sebastian.huber@…>, on 12/20/13 at 09:17:32

Use integer-only printf in kernel space

  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 * Copyright (c) 2010-2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 *    notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 *    notice, this list of conditions and the following disclaimer in the
17 *    documentation and/or other materials provided with the distribution.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#ifndef _MACHINE_RTEMS_BSD_PRINTF_TO_IPRINTF_H_
33#define _MACHINE_RTEMS_BSD_PRINTF_TO_IPRINTF_H_
34
35#define asprintf asiprintf
36#define _asprintf_r _asiprintf_r
37#define asnprintf asniprintf
38#define _asnprintf_r _asniprintf_r
39#define dprintf diprintf
40#define _dprintf_r _diprintf_r
41#define fprintf fiprintf
42#define _fprintf_r _fiprintf_r
43#define printf iprintf
44#define _printf_r _iprintf_r
45#define sprintf siprintf
46#define _sprintf_r _siprintf_r
47#define snprintf sniprintf
48#define _snprintf_r _sniprintf_r
49#define vasprintf vasiprintf
50#define _vasprintf_r _vasiprintf_r
51#define vasnprintf vasniprintf
52#define _vasnprintf_r _vasniprintf_r
53#define vdprintf vdiprintf
54#define _vdprintf_r _vdiprintf_r
55#define vfprintf vfiprintf
56#define _vfprintf_r _vfiprintf_r
57#define vprintf viprintf
58#define _vprintf_r _viprintf_r
59#define vsprintf vsiprintf
60#define _vsprintf_r _vsiprintf_r
61#define vsnprintf vsniprintf
62#define _vsnprintf_r _vsniprintf_r
63
64#define fscanf fiscanf
65#define _fscanf_r _fiscanf_r
66#define scanf iscanf
67#define _scanf_r _iscanf_r
68#define _sscanf_r _siscanf_r
69#define sscanf siscanf
70#define _vfscanf_r _vfiscanf_r
71#define vfscanf vfiscanf
72#define _vscanf_r _viscanf_r
73#define vscanf viscanf
74#define _vsscanf_r _vsiscanf_r
75#define vsscanf vsiscanf
76
77#endif /* _MACHINE_RTEMS_BSD_PRINTF_TO_IPRINTF_H_ */
Note: See TracBrowser for help on using the repository browser.