Xen Test Framework
weak-defaults.c
Go to the documentation of this file.
1/*
2 * @file common/weak-defaults.c
3 *
4 * Default implementations of functions called by common code, which may need
5 * arch or environment specific implementations.
6 */
7#include <xtf/framework.h>
8#include <xtf/types.h>
9
10const char __weak environment_description[] = "Unknown";
11
13{
14}
15
17{
18}
19
21 char **str, char *end, const char **fmt_ptr, const void *arg,
22 int width, int precision, unsigned int flags)
23{
24 return false;
25}
26
28{
29 /* panic() has failed. Sit in a tight loop. */
30 for ( ;; )
31 ;
33}
34
35/*
36 * Local variables:
37 * mode: C
38 * c-file-style: "BSD"
39 * c-basic-offset: 4
40 * tab-width: 4
41 * indent-tabs-mode: nil
42 * End:
43 */
static unsigned int str(void)
Definition: lib.h:366
#define __weak
Definition: compiler.h:15
#define __noreturn
Definition: compiler.h:10
#define unreachable()
Definition: compiler.h:29
Interfaces used by common code, needing to be implemented by arch/environment specific code.
Common declarations for all tests.
void arch_crash_hard(void)
Definition: weak-defaults.c:27
const char environment_description[]
Definition: weak-defaults.c:10
void test_setup(void)
Definition: weak-defaults.c:16
void arch_setup(void)
Definition: weak-defaults.c:12
bool arch_fmt_pointer(char **str, char *end, const char **fmt_ptr, const void *arg, int width, int precision, unsigned int flags)
Definition: weak-defaults.c:20