2 * Copyright (C) 2010 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
4 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation;
8 * version 2.1 of the License (not later!)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, see <http://www.gnu.org/licenses>
18 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 #define __weak __attribute__((weak))
28 void __vdie(const char *fmt
, va_list ap
)
38 vfprintf(stderr
, fmt
, ap
);
40 fprintf(stderr
, "\n");
44 void __die(const char *fmt
, ...)
53 void __weak
die(const char *fmt
, ...)
62 void __vwarning(const char *fmt
, va_list ap
)
69 vfprintf(stderr
, fmt
, ap
);
71 fprintf(stderr
, "\n");
74 void __warning(const char *fmt
, ...)
83 void __weak
warning(const char *fmt
, ...)
92 void __vpr_stat(const char *fmt
, va_list ap
)
98 void __pr_stat(const char *fmt
, ...)
107 void __weak
vpr_stat(const char *fmt
, va_list ap
)
112 void __weak
pr_stat(const char *fmt
, ...)
121 void __weak
*malloc_or_die(unsigned int size
)