| #include <stdio.h> |
| #include <unistd.h> |
| |
| /* Not everyone customizes this so leave it as-is for userspace */ |
| #define VMLINUX_SYMBOL(x) x |
| |
| /* This is for ancient compilers */ |
| #define LTO_REFERENCE_INITCALL(x) |
| |
| /* no equivalent on userspace yet */ |
| #define __ref |
| |
| #define BIT(nr) (1UL << (nr)) |
| |
| #define pr_info(fmt, ...) printf(fmt, ##__VA_ARGS__) |
| |
| #define BUG() do { \ |
| fprintf(stderr, "----------------------------------------------------------\n"); \ |
| fprintf (stderr, "BUG on %s at %s: %i\n", __func__, __FILE__, __LINE__); \ |
| } \ |
| while (0) |
| |
| #define WARN_ON(__test) do { \ |
| if (__test) { \ |
| fprintf(stderr, "----------------------------------------------------------\n");\ |
| fprintf (stderr, "WARN_ON on %s at %s: %i\n", __func__, __FILE__, __LINE__); \ |
| } \ |
| } \ |
| while (0) |