mbgtools-lx
4.2.8
|
Go to the source code of this file.
Macros | |
#define | _ext extern |
#define | DEBUG_MSG_SLEEP 0 |
#define | USE_MBG_KDD_MSG 1 |
#define | _mbg_kdd_msg_0(_lvl, _fmt) mbg_kdd_msg( _lvl, _fmt ) |
#define | _mbg_kdd_msg_1(_lvl, _fmt, _p1) mbg_kdd_msg( _lvl, _fmt, (_p1) ) |
#define | _mbg_kdd_msg_2(_lvl, _fmt, _p1, _p2) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2) ) |
#define | _mbg_kdd_msg_3(_lvl, _fmt, _p1, _p2, _p3) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3) ) |
#define | _mbg_kdd_msg_4(_lvl, _fmt, _p1, _p2, _p3, _p4) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4) ) |
#define | _mbg_kdd_msg_5(_lvl, _fmt, _p1, _p2, _p3, _p4, _p5) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5) ) |
#define | _mbg_kdd_msg_6(_lvl, _fmt, _p1, _p2, _p3, _p4, _p5, _p6) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5), (_p6) ) |
#define | _mbg_kdd_msg_7(_lvl, _fmt, _p1, _p2, _p3, _p4, _p5, _p6, _p7) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5), (_p6), (_p7) ) |
#define | _mbg_kdd_msg_8(_lvl, _fmt, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8) mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5), (_p6), (_p7), (_p8) ) |
#define | _mbgddmsg_0(_f, _lvl, _fmt) |
#define | _mbgddmsg_1(_f, _lvl, _fmt, _p1) |
#define | _mbgddmsg_2(_f, _lvl, _fmt, _p1, _p2) |
#define | _mbgddmsg_3(_f, _lvl, _fmt, _p1, _p2, _p3) |
#define | _mbgddmsg_4(_f, _lvl, _fmt, _p1, _p2, _p3, _p4) |
#define | _mbgddmsg_5(_f, _lvl, _fmt, _p1, _p2, _p3, _p4, _p5) |
#define | _mbgddmsg_6(_f, _lvl, _fmt, _p1, _p2, _p3, _p4, _p5, _p6) |
#define | _mbgddmsg_7(_f, _lvl, _fmt, _p1, _p2, _p3, _p4, _p5, _p6, _p7) |
#define | _mbgddmsg_8(_f, _lvl, _fmt, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8) |
#define | MBG_LOG_FMT_ENTERING "Entering \"%s\"" |
#define | MBG_LOG_FMT_ENTERING_STR MBG_LOG_FMT_ENTERING " %s" |
#define | MBG_LOG_FMT_LEAVING "Leaving \"%s\"" |
#define | MBG_LOG_FMT_LEAVING_STR MBG_LOG_FMT_LEAVING " %s" |
#define | MBG_LOG_FMT_LEAVING_SUCCESS MBG_LOG_FMT_LEAVING " success" |
#define | MBG_LOG_FMT_LEAVING_ERR MBG_LOG_FMT_LEAVING " err" |
#define | MBG_LOG_FMT_LEAVING_ERR_MBG MBG_LOG_FMT_LEAVING " err %i: %s" |
#define | MBG_LOG_FMT_LEAVING_ERR_DEC MBG_LOG_FMT_LEAVING " err %li" |
#define | MBG_LOG_FMT_LEAVING_ERR_HEX MBG_LOG_FMT_LEAVING " err 0x%08lX" |
#define | _mbgddmsg_fnc_entry() |
#define | _mbgddmsg_fnc_entry_str(_s) |
#define | _mbgddmsg_fnc_exit() |
#define | _mbgddmsg_fnc_exit_str(_s) |
#define | _mbgddmsg_fnc_exit_success() |
#define | _mbgddmsg_fnc_exit_err() |
#define | _mbgddmsg_fnc_exit_err_mbg(_mbg_errno) |
#define | _mbgddmsg_fnc_exit_err_dec(_errnum) |
#define | _mbgddmsg_fnc_exit_err_hex(_errnum) |
#define | _mbgddmsg_fnc_exit_chk_mbg_rc(_rc) |
#define | _mbgddmsg_fnc_exit_chk_rc(_rc) |
Enumerations | |
enum | MBG_LOG_LEVELS { MBG_LOG_ERR, MBG_LOG_WARN, MBG_LOG_NOTICE, MBG_LOG_INFO, MBG_LOG_DEBUG, N_MBG_LOG_LVL } |
Functions | |
static __mbg_inline int | mbg_kdd_vsnprintf (char *s, size_t max_len, const char *fmt, va_list args) |
int | mbg_kdd_snprintf (char *buf, size_t size, const char *fmt,...) |
void | mbg_kdd_msg (int lvl, const char *fmt,...) |
#define _ext extern |
Definition at line 109 of file mbgddmsg.h.
#define _mbg_kdd_msg_0 | ( | _lvl, | |
_fmt | |||
) | mbg_kdd_msg( _lvl, _fmt ) |
Definition at line 233 of file mbgddmsg.h.
Referenced by pcps_generic_io(), pcps_probe_device(), report_io_cmd(), report_ret_val(), and setup_sernum_and_receiver_info().
#define _mbg_kdd_msg_1 | ( | _lvl, | |
_fmt, | |||
_p1 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1) ) |
Definition at line 236 of file mbgddmsg.h.
Referenced by dump_receiver_info(), dump_tlv_info(), pcps_check_gps_data_size(), pcps_init_gps_transfer(), pcps_probe_device(), pcps_write_gps(), ptp270pex_can_flag_ready(), report_access_mode(), report_io_cmd(), report_ret_val(), report_uptime(), setup_mm_addr(), and setup_sernum_and_receiver_info().
#define _mbg_kdd_msg_2 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2) ) |
Definition at line 239 of file mbgddmsg.h.
Referenced by dump_receiver_info(), dump_tlv_info(), dump_xfeature_buffer(), mbg_map_iomem_rsrc(), mbg_map_ioport_rsrc(), pcps_add_rsrc_io(), pcps_add_rsrc_irq(), pcps_add_rsrc_mem(), pcps_dump_data(), pcps_init_gps_transfer(), pcps_probe_device(), pcps_release_rsrcs(), pcps_write(), pcps_write_gps(), report_access_mode(), report_ret_val(), report_uptime(), rsrc_alloc_mem(), rsrc_alloc_ports(), setup_sernum_and_receiver_info(), and wait_ptp270pex_ready().
#define _mbg_kdd_msg_3 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2, | |||
_p3 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3) ) |
Definition at line 242 of file mbgddmsg.h.
Referenced by check_receiver_info_and_features(), check_ri_features(), ioctl_switch(), pcps_chk_dev_feat(), pcps_generic_io(), pcps_init_gps_transfer(), pcps_probe_device(), pcps_read_gps(), pcps_read_gps_block(), pcps_release_rsrcs(), pcps_write_gps(), ptp270pex_can_flag_ready(), report_access_mode(), report_io_cmd(), report_ret_val(), and swap_tstamp().
#define _mbg_kdd_msg_4 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4) ) |
Definition at line 245 of file mbgddmsg.h.
Referenced by check_receiver_info_and_features(), check_ri_features(), mbgclock_unlocked_ioctl(), pcps_add_rsrc_io(), pcps_add_rsrc_mem(), pcps_probe_device(), pcps_read_gps_block(), pcps_write(), report_io_cmd(), report_probe_device(), and report_ret_val().
#define _mbg_kdd_msg_5 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5) ) |
Definition at line 248 of file mbgddmsg.h.
Referenced by check_feature(), pcps_generic_io(), report_io_cmd(), and setup_sernum_and_receiver_info().
#define _mbg_kdd_msg_6 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5, | |||
_p6 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5), (_p6) ) |
Definition at line 251 of file mbgddmsg.h.
#define _mbg_kdd_msg_7 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5, | |||
_p6, | |||
_p7 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5), (_p6), (_p7) ) |
Definition at line 254 of file mbgddmsg.h.
Referenced by report_io_cmd().
#define _mbg_kdd_msg_8 | ( | _lvl, | |
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5, | |||
_p6, | |||
_p7, | |||
_p8 | |||
) | mbg_kdd_msg( _lvl, _fmt, (_p1), (_p2), (_p3), (_p4), (_p5), (_p6), (_p7), (_p8) ) |
Definition at line 257 of file mbgddmsg.h.
#define _mbgddmsg_0 | ( | _f, | |
_lvl, | |||
_fmt | |||
) |
Definition at line 312 of file mbgddmsg.h.
Referenced by ddev_list_free(), ioctl_switch(), mbgdrvr_disable_cyclic(), and pcps_alloc_ddev_struc().
#define _mbgddmsg_1 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1 | |||
) |
Definition at line 318 of file mbgddmsg.h.
Referenced by mbgclock_init_module(), mbgclock_ioctl(), mbgclock_read(), mbgclock_write(), mbgdrvr_disable_cyclic(), mbgdrvr_ioctl_emu_serial(), pcps_cleanup_device(), pcps_detect_isa_devices(), pcps_get_fw_id(), pcps_probe_device(), report_ret_val(), and setup_sernum_and_receiver_info().
#define _mbgddmsg_2 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2 | |||
) |
Definition at line 324 of file mbgddmsg.h.
Referenced by check_receiver_info_and_features(), ddev_list_alloc(), ddev_list_locate_device(), mbg_cond_err_msg_info(), mbgclock_open(), mbgclock_release(), mbgdrvr_disable_cyclic(), mbgdrvr_enable_cyclic(), mbgdrvr_get_pddev(), mbgdrvr_ioctl_emu_serial(), pcps_add_rsrc_irq(), pcps_cleanup_device(), pcps_detect_isa_devices(), pcps_get_fw_id(), release_cyclic_lock(), rsrc_dealloc_mem(), and rsrc_dealloc_ports().
#define _mbgddmsg_3 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2, | |||
_p3 | |||
) |
Definition at line 330 of file mbgddmsg.h.
Referenced by ddev_list_locate_device(), ioctl_switch(), mbgclock_mmap(), mbgclock_open(), mbgclock_read(), pcps_probe_device(), report_ret_val(), rsrc_alloc_mem(), rsrc_alloc_ports(), and set_dev_connected().
#define _mbgddmsg_4 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4 | |||
) |
Definition at line 336 of file mbgddmsg.h.
Referenced by ioctl_switch(), mbgclock_default_get_ucap_entries(), mbgclock_default_get_ucap_event(), mbgclock_mmap(), mbgclock_read(), mbgclock_release(), mbgdrvr_enable_cyclic(), mbgdrvr_get_pddev(), pcps_chk_dev_feat(), and release_cyclic_lock().
#define _mbgddmsg_5 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5 | |||
) |
Definition at line 342 of file mbgddmsg.h.
Referenced by mbgclock_release(), mbgclock_unlocked_ioctl(), mbgdrvr_ioctl_emu_serial(), and pcps_chk_dev_feat().
#define _mbgddmsg_6 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5, | |||
_p6 | |||
) |
Definition at line 348 of file mbgddmsg.h.
Referenced by ioctl_switch(), and release_cyclic_lock().
#define _mbgddmsg_7 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5, | |||
_p6, | |||
_p7 | |||
) |
Definition at line 354 of file mbgddmsg.h.
#define _mbgddmsg_8 | ( | _f, | |
_lvl, | |||
_fmt, | |||
_p1, | |||
_p2, | |||
_p3, | |||
_p4, | |||
_p5, | |||
_p6, | |||
_p7, | |||
_p8 | |||
) |
Definition at line 360 of file mbgddmsg.h.
#define _mbgddmsg_fnc_entry | ( | ) |
Definition at line 399 of file mbgddmsg.h.
Referenced by mbgclock_default_clr_ucap_buff(), mbgclock_default_get_fast_hr_timestamp(), mbgclock_default_get_fast_hr_timestamp_cycles(), mbgclock_default_get_ucap_entries(), mbgclock_default_get_ucap_event(), mbgclock_init_module(), pcps_add_rsrc_irq(), pcps_alloc_ddev_struc(), pcps_cleanup_ddev(), pcps_free_ddev_struc(), pcps_init_ddev(), and pcps_probe_device().
#define _mbgddmsg_fnc_entry_str | ( | _s | ) |
Definition at line 403 of file mbgddmsg.h.
#define _mbgddmsg_fnc_exit | ( | ) |
Definition at line 407 of file mbgddmsg.h.
Referenced by mbgclock_default_clr_ucap_buff(), mbgclock_default_get_fast_hr_timestamp(), mbgclock_default_get_fast_hr_timestamp_cycles(), pcps_cleanup_ddev(), and pcps_free_ddev_struc().
#define _mbgddmsg_fnc_exit_chk_mbg_rc | ( | _rc | ) |
Definition at line 437 of file mbgddmsg.h.
Referenced by pcps_alloc_ddev_struc(), and pcps_init_ddev().
#define _mbgddmsg_fnc_exit_chk_rc | ( | _rc | ) |
Definition at line 446 of file mbgddmsg.h.
#define _mbgddmsg_fnc_exit_err | ( | ) |
Definition at line 419 of file mbgddmsg.h.
Referenced by pcps_add_rsrc_irq().
#define _mbgddmsg_fnc_exit_err_dec | ( | _errnum | ) |
Definition at line 428 of file mbgddmsg.h.
Referenced by mbgclock_default_clr_ucap_buff(), mbgclock_default_get_ucap_entries(), mbgclock_default_get_ucap_event(), and mbgclock_init_module().
#define _mbgddmsg_fnc_exit_err_hex | ( | _errnum | ) |
Definition at line 432 of file mbgddmsg.h.
#define _mbgddmsg_fnc_exit_err_mbg | ( | _mbg_errno | ) |
Definition at line 424 of file mbgddmsg.h.
#define _mbgddmsg_fnc_exit_str | ( | _s | ) |
Definition at line 411 of file mbgddmsg.h.
#define _mbgddmsg_fnc_exit_success | ( | ) |
Definition at line 415 of file mbgddmsg.h.
Referenced by mbgclock_init_module(), and pcps_add_rsrc_irq().
#define DEBUG_MSG_SLEEP 0 |
Definition at line 125 of file mbgddmsg.h.
#define MBG_LOG_FMT_ENTERING "Entering \"%s\"" |
Definition at line 384 of file mbgddmsg.h.
#define MBG_LOG_FMT_ENTERING_STR MBG_LOG_FMT_ENTERING " %s" |
Definition at line 385 of file mbgddmsg.h.
#define MBG_LOG_FMT_LEAVING "Leaving \"%s\"" |
Definition at line 387 of file mbgddmsg.h.
Referenced by mbgclock_default_get_ucap_entries(), and mbgclock_default_get_ucap_event().
#define MBG_LOG_FMT_LEAVING_ERR MBG_LOG_FMT_LEAVING " err" |
Definition at line 390 of file mbgddmsg.h.
#define MBG_LOG_FMT_LEAVING_ERR_DEC MBG_LOG_FMT_LEAVING " err %li" |
Definition at line 392 of file mbgddmsg.h.
#define MBG_LOG_FMT_LEAVING_ERR_HEX MBG_LOG_FMT_LEAVING " err 0x%08lX" |
Definition at line 393 of file mbgddmsg.h.
#define MBG_LOG_FMT_LEAVING_ERR_MBG MBG_LOG_FMT_LEAVING " err %i: %s" |
Definition at line 391 of file mbgddmsg.h.
#define MBG_LOG_FMT_LEAVING_STR MBG_LOG_FMT_LEAVING " %s" |
Definition at line 388 of file mbgddmsg.h.
#define MBG_LOG_FMT_LEAVING_SUCCESS MBG_LOG_FMT_LEAVING " success" |
Definition at line 389 of file mbgddmsg.h.
#define USE_MBG_KDD_MSG 1 |
Definition at line 143 of file mbgddmsg.h.
enum MBG_LOG_LEVELS |
Enumerator | |
---|---|
MBG_LOG_ERR | |
MBG_LOG_WARN | |
MBG_LOG_NOTICE | |
MBG_LOG_INFO | |
MBG_LOG_DEBUG | |
N_MBG_LOG_LVL |
Definition at line 220 of file mbgddmsg.h.
void mbg_kdd_msg | ( | int | lvl, |
const char * | fmt, | ||
... | |||
) |
int mbg_kdd_snprintf | ( | char * | buf, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
Referenced by mbg_kdd_vsnprintf(), pcps_dump_data(), report_access_mode(), and report_probe_device().
|
static |
Definition at line 526 of file mbgddmsg.h.
References mbg_buffer_specs_valid(), mbg_chk_snprint_results(), mbg_kdd_msg(), mbg_kdd_snprintf(), and vsnprintf_safe().