Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | extern void vzprintf(zoneid_t, const char *, __va_list) | ||||
| __attribute__((format(__printf__, 2, 0))); | __attribute__((format(__printf__, 2, 0))); | ||||
| extern void zprintf(zoneid_t, const char *, ...) | extern void zprintf(zoneid_t, const char *, ...) | ||||
| __attribute__((format(__printf__, 2, 3))); | __attribute__((format(__printf__, 2, 3))); | ||||
| extern void vuprintf(const char *, __va_list) | extern void vuprintf(const char *, __va_list) | ||||
| __attribute__((format(__printf__, 1, 0))); | __attribute__((format(__printf__, 1, 0))); | ||||
| extern void panic(const char *, ...) | struct panic_codeptr; | ||||
| __attribute__((format(__printf__, 1, 2), __noreturn__)); | |||||
| extern void do_panic(const struct panic_codeptr *, const char *, ...) | |||||
| __attribute__((format(__printf__, 2, 3), __noreturn__)); | |||||
| #define cmn_err_once(ce, ...) \ | #define cmn_err_once(ce, ...) \ | ||||
| do { \ | do { \ | ||||
| static volatile uint32_t printed = 0; \ | static volatile uint32_t printed = 0; \ | ||||
| if (atomic_cas_32(&printed, 0, 1) == 0) { \ | if (atomic_cas_32(&printed, 0, 1) == 0) { \ | ||||
| cmn_err(ce, __VA_ARGS__); \ | cmn_err(ce, __VA_ARGS__); \ | ||||
| } \ | } \ | ||||
| } while (0) | } while (0) | ||||
| Show All 32 Lines | |||||