#endif
#ifndef _di_kt_tacocat_print_error_
- f_status_t kt_tacocat_print_error(fl_print_t * const print, const f_string_t function) {
+ f_status_t kt_tacocat_print_error(fl_print_t * const print, const f_string_t debug) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
- fll_error_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), function, F_true);
+ fll_error_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), debug, F_true);
return F_okay;
}
#endif // _di_kt_tacocat_print_error_
#ifndef _di_kt_tacocat_print_error_status_
- f_status_t kt_tacocat_print_error_status(fl_print_t * const print, const f_string_t function, const f_status_t status) {
+ f_status_t kt_tacocat_print_error_status(fl_print_t * const print, const f_string_t debug, const f_status_t status) {
if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
- fll_error_print(print, F_status_set_fine(status), function, F_true);
+ fll_error_print(print, F_status_set_fine(status), debug, F_true);
return F_okay;
}
#endif // _di_kt_tacocat_print_error_status_
#ifndef _di_kt_tacocat_print_error_file_
- f_status_t kt_tacocat_print_error_file(fl_print_t * const print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
+ f_status_t kt_tacocat_print_error_file(fl_print_t * const print, const f_string_t debug, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
- fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), function, F_true, name, operation, type);
+ fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), debug, F_true, name, operation, type);
return F_okay;
}
#endif // _di_kt_tacocat_print_error_file_
#ifndef _di_kt_tacocat_print_error_on_
- f_status_t kt_tacocat_print_error_on(fl_print_t * const print, const f_string_t function, const f_string_static_t on, const f_string_static_t network, const f_status_t status, const f_string_static_t name) {
+ f_status_t kt_tacocat_print_error_on(fl_print_t * const print, const f_string_t debug, const f_string_static_t on, const f_string_static_t network, const f_status_t status, const f_string_static_t name) {
if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_unlock(print->to);
- fll_error_print(print, F_status_set_fine(status), function, F_true);
+ fll_error_print(print, F_status_set_fine(status), debug, F_true);
return F_okay;
}
#endif // _di_kt_tacocat_print_error_on_busy_
#ifndef _di_kt_tacocat_print_error_on_file_receive_
- f_status_t kt_tacocat_print_error_on_file_receive(fl_print_t * const print, const f_string_t function, const f_string_static_t on, const f_string_static_t network, const f_status_t status, const f_string_static_t name, const f_string_static_t operation) {
+ f_status_t kt_tacocat_print_error_on_file_receive(fl_print_t * const print, const f_string_t debug, const f_string_static_t on, const f_string_static_t network, const f_status_t status, const f_string_static_t name, const f_string_static_t operation) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_unlock(print->to);
- fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), function, F_true, name, operation, fll_error_file_type_file_e);
+ fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), debug, F_true, name, operation, fll_error_file_type_file_e);
}
#endif // _di_kt_tacocat_print_error_on_file_receive_
#ifndef _di_kt_tacocat_print_error_on_file_send_
- f_status_t kt_tacocat_print_error_on_file_send(fl_print_t * const print, const f_string_t function, const f_string_static_t on, const f_string_static_t network, const f_status_t status, const f_string_static_t name, const f_string_static_t operation) {
+ f_status_t kt_tacocat_print_error_on_file_send(fl_print_t * const print, const f_string_t debug, const f_string_static_t on, const f_string_static_t network, const f_status_t status, const f_string_static_t name, const f_string_static_t operation) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_unlock(print->to);
- fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), function, F_true, name, operation, fll_error_file_type_file_e);
+ fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), debug, F_true, name, operation, fll_error_file_type_file_e);
}
#endif // _di_kt_tacocat_print_error_on_file_send_
fl_print_format("%[' and Content '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
fl_print_format(f_string_format_Q_range_single_s.string, print->to, print->set->notable, buffer, content, print->set->notable);
fl_print_format("%[' with a status code of %]", print->to, print->set->error, print->set->error, f_string_eol_s);
- fl_print_format(f_string_format_ul_single_s.string, print->to, print->set->notable, status, print->set->notable);
+ fl_print_format(f_string_format_ul_single_s.string, print->to, print->set->notable, F_status_set_fine(status), print->set->notable);
fl_print_format(f_string_format_sentence_end_s.string, print->to, print->set->error, print->set->error, f_string_eol_s);
f_file_stream_unlock(print->to);
#endif
/**
- * Print generic error message regarding a function failing in some way.
+ * Print generic error message regarding some failure.
*
* @param print
* The output structure to print to.
* Must not be NULL.
*
* This does not alter print.custom.setting.state.status.
- * @param function
- * A string representing the function that has an error.
+ * @param debug
+ * (optional) The debug details, such as file, line number, and function.
+ *
+ * Set to NULL to disable.
*
* @return
* F_okay on success.
* @see fll_error_print()
*/
#ifndef _di_kt_tacocat_print_error_
- extern f_status_t kt_tacocat_print_error(fl_print_t * const print, const f_string_t function);
+ extern f_status_t kt_tacocat_print_error(fl_print_t * const print, const f_string_t debug);
#endif // _di_kt_tacocat_print_error_
/**
* Must not be NULL.
*
* This does not alter print.custom.setting.state.status.
- * @param function
- * A string representing the function that has an error.
+ * @param debug
+ * (optional) The debug details, such as file, line number, and function.
+ *
+ * Set to NULL to disable.
* @param status
* The status code representing the error being reported.
*
* Must not be NULL.
*
* This does not alter print.custom.setting.state.status.
- * @param function
- * The name of the function where the error happened.
- * Set to 0 to disable.
+ * @param debug
+ * (optional) The debug details, such as file, line number, and function.
+ *
+ * Set to NULL to disable.
* @param name
* The name of the file or directory.
* @param operation
* Must not be NULL.
*
* This does not alter print.custom.setting.state.status.
- * @param function
- * (optional) The name of the function where the error happened.
+ * @param debug
+ * (optional) The debug details, such as file, line number, and function.
*
- * Set to 0 to disable.
+ * Set to NULL to disable.
* @param on
* The network connection direction, which should either be "receive" or "send".
* @param network
* Must not be NULL.
*
* This does not alter print.custom.setting.state.status.
- * @param function
- * (optional) The name of the function where the error happened.
+ * @param debug
+ * (optional) The debug details, such as file, line number, and function.
*
- * Set to 0 to disable.
+ * Set to NULL to disable.
* @param on
* The network connection direction, which should either be "receive" or "send".
* @param network
* Must not be NULL.
*
* This does not alter print.custom.setting.state.status.
- * @param function
- * (optional) The name of the function where the error happened.
+ * @param debug
+ * (optional) The debug details, such as file, line number, and function.
*
- * Set to 0 to disable.
+ * Set to NULL to disable.
* @param on
* The network connection direction, which should either be "receive" or "send".
* @param network