Home
last modified time | relevance | path

Searched refs:errnum (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/md/dm-vdo/
H A Derrors.c97 static const char *get_error_info(int errnum, const struct error_info **info_ptr) in get_error_info() argument
101 if (errnum == UDS_SUCCESS) { in get_error_info()
109 if ((errnum >= block->base) && (errnum < block->last)) { in get_error_info()
110 *info_ptr = block->infos + (errnum - block->base); in get_error_info()
112 } else if ((errnum >= block->last) && (errnum < block->max)) { in get_error_info()
122 static const char *system_string_error(int errnum, char *buf, size_t buflen) in system_string_error() argument
127 if ((errnum > 0) && (errnum < ARRAY_SIZE(message_table))) in system_string_error()
128 error_string = message_table[errnum]; in system_string_error()
131 snprintf(buf, buflen, "Unknown error %d", errnum) : in system_string_error()
141 const char *uds_string_error(int errnum, char *buf, size_t buflen) in uds_string_error() argument
[all …]
H A Dlogger.h56 #define vdo_log_strerror(priority, errnum, ...) \ argument
57 __vdo_log_strerror(priority, errnum, VDO_LOGGING_MODULE_NAME, __VA_ARGS__)
59 int __vdo_log_strerror(int priority, int errnum, const char *module,
63 int vdo_vlog_strerror(int priority, int errnum, const char *module, const char *format,
68 #define vdo_log_error_strerror(errnum, ...) \ argument
69 vdo_log_strerror(VDO_LOG_ERR, errnum, __VA_ARGS__)
71 #define vdo_log_debug_strerror(errnum, ...) \ argument
72 vdo_log_strerror(VDO_LOG_DEBUG, errnum, __VA_ARGS__)
74 #define vdo_log_info_strerror(errnum, ...) \ argument
75 vdo_log_strerror(VDO_LOG_INFO, errnum, __VA_ARGS__)
[all …]
H A Derrors.h63 const char * __must_check uds_string_error(int errnum, char *buf, size_t buflen);
65 const char *uds_string_error_name(int errnum, char *buf, size_t buflen);
/linux/tools/perf/util/
H A Dtarget.c111 int target__strerror(struct target *target __maybe_unused, int errnum, in target__strerror() argument
119 if (errnum >= 0) { in target__strerror()
120 str_error_r(errnum, buf, buflen); in target__strerror()
124 if (errnum < __TARGET_ERRNO__START || errnum >= __TARGET_ERRNO__END) in target__strerror()
127 idx = errnum - __TARGET_ERRNO__START; in target__strerror()
130 switch (errnum) { in target__strerror()
H A Dtarget.h50 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen);
H A Ddso.c1759 int idx, errnum = *dso__load_errno(dso); in dso__strerror_load() local
1773 if (errnum >= 0) { in dso__strerror_load()
1774 const char *err = str_error_r(errnum, buf, buflen); in dso__strerror_load()
1782 if (errnum < __DSO_LOAD_ERRNO__START || errnum >= __DSO_LOAD_ERRNO__END) in dso__strerror_load()
1785 idx = errnum - __DSO_LOAD_ERRNO__START; in dso__strerror_load()
H A Ddisasm.c1208 int symbol__strerror_disassemble(struct map_symbol *ms, int errnum, char *buf, size_t buflen) in symbol__strerror_disassemble() argument
1214 if (errnum >= 0) { in symbol__strerror_disassemble()
1215 str_error_r(errnum, buf, buflen); in symbol__strerror_disassemble()
1219 switch (errnum) { in symbol__strerror_disassemble()
1257 scnprintf(buf, buflen, "Internal error: Invalid %d error code\n", errnum); in symbol__strerror_disassemble()
H A Dannotate.h472 int symbol__strerror_disassemble(struct map_symbol *ms, int errnum, char *buf, size_t buflen);
/linux/tools/lib/
H A Dstr_error_r.c21 char *str_error_r(int errnum, char *buf, size_t buflen) in str_error_r() argument
23 int err = strerror_r(errnum, buf, buflen); in str_error_r()
25 snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err); in str_error_r()
/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-unavailable.c37 #define err_at_line(status, errnum, format, ...) \ argument
38 error_at_line(status, errnum, __FILE__, __LINE__, format ##__VA_ARGS__)
/linux/include/xen/interface/io/
H A Dxs_wire.h50 int errnum; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsocket_helpers.h38 #define _FAIL(errnum, fmt...) \ argument
40 error_at_line(0, (errnum), __func__, __LINE__, fmt); \
/linux/tools/testing/selftests/mm/
H A Dmerge.c544 int errnum = errno; in TEST_F() local
547 ASSERT_EQ(errnum, EINVAL); in TEST_F()
/linux/tools/include/nolibc/
H A Dstdio.h24 static const char *strerror(int errnum);
/linux/drivers/xen/xenbus/
H A Dxenbus_xs.c171 return xsd_errors[i].errnum; in get_error()
/linux/drivers/edac/
H A Di7core_edac.c1708 u32 errnum = find_first_bit(&error, 32); in i7core_mce_output_error() local
1741 switch (errnum) { in i7core_mce_output_error()