Go to the source code of this file.
Defines | |
#define | CCNL_NONE 0 |
Levels for deciding whether or not to log. | |
#define | CCNL_SEVERE 3 |
Severe errors. | |
#define | CCNL_ERROR 5 |
Configuration errors. | |
#define | CCNL_WARNING 7 |
Something might be wrong. | |
#define | CCNL_INFO 9 |
Low-volume informational. | |
#define | CCNL_FINE 11 |
Debugging. | |
#define | CCNL_FINER 13 |
More debugging. | |
#define | CCNL_FINEST 15 |
MORE DEBUGGING YET. | |
Functions | |
int | ccnr_msg_level_from_string (const char *s) |
void | ccnr_debug_ccnb (struct ccnr_handle *h, int lineno, const char *msg, struct fdholder *fdholder, const unsigned char *ccnb, size_t ccnb_size) |
Produce a ccnr debug trace entry. | |
void | ccnr_msg (struct ccnr_handle *h, const char *fmt,...) |
Produce ccnr debug output. | |
Variables | |
const char * | ccnr_usage_message |
CCNR Usage message. |
Definition in file ccnr_msg.h.
#define CCNL_ERROR 5 |
Configuration errors.
Definition at line 33 of file ccnr_msg.h.
Referenced by ccnr_msg_level_from_string(), r_init_config_msg(), SyncCacheEntryFetch(), SyncLocalRepoFetch(), SyncLocalRepoStore(), SyncRemoteFetchResponse(), and SyncSendRootAdviseInterest().
#define CCNL_FINE 11 |
Debugging.
Definition at line 36 of file ccnr_msg.h.
Referenced by addNameFromCompare(), ccnr_answer_req(), ccnr_close_fd(), ccnr_msg(), ccnr_msg_level_from_string(), CompareAction(), findAndDeleteRoot(), MakeNodeFromNames(), newNodeCommon(), nodeFromNodes(), noteRemoteHash(), process_incoming_content(), purgeOldEntries(), r_io_open_repo_data_file(), r_link_do_deferred_write(), r_match_consume_matching_interests(), r_net_listen_on_address(), r_proto_answer_req(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_check_exclude(), r_proto_continue_enumeration(), r_proto_expect_content(), r_proto_initiate_key_fetch(), r_proto_start_write(), r_proto_start_write_checked(), r_store_index_cleaner(), r_store_mark_stale(), r_store_send_content(), r_sync_enumerate(), r_sync_local_store(), r_sync_upcall_store(), SyncAddName(), SyncHandleSlice(), SyncInterestArrived(), SyncNotifyContent(), SyncRemoteFetchResponse(), SyncSendRootAdviseInterest(), SyncTreeMergeNames(), TryNodeSplit(), and UpdateAction().
#define CCNL_FINER 13 |
More debugging.
Definition at line 37 of file ccnr_msg.h.
Referenced by ccnr_msg_level_from_string(), content_sender(), process_incoming_content(), r_proto_answer_req(), r_proto_begin_enumeration(), r_proto_continue_enumeration(), r_sendq_face_send_queue_insert(), r_store_find_first_match_candidate(), r_store_forget_content(), r_store_index_cleaner(), r_store_index_needs_cleaning(), r_store_lookup(), r_store_next_child_at_level(), r_store_trim(), reap_enumerations(), setCovered(), and SyncInterestArrived().
#define CCNL_FINEST 15 |
MORE DEBUGGING YET.
Definition at line 38 of file ccnr_msg.h.
Referenced by ccnr_direct_client_refresh(), ccnr_msg_level_from_string(), cleanup_se(), r_init_confval(), r_init_debug_getenv(), r_init_parse_config(), r_io_prepare_poll_fds(), r_io_send(), r_proto_begin_enumeration(), r_proto_policy_complete(), r_store_content_base(), r_store_content_from_accession(), r_store_index_cleaner(), r_store_init(), r_sync_enumerate(), r_sync_enumerate_action(), and r_sync_notify_content().
#define CCNL_INFO 9 |
Low-volume informational.
Definition at line 35 of file ccnr_msg.h.
Referenced by abortCompare(), ccnr_msg_level_from_string(), CompareAction(), establish_min_send_bufsize(), findAndDeleteRoot(), HeartbeatAction(), merge_files(), newNodeCommon(), r_io_accept_connection(), r_io_open_repo_data_file(), r_io_shutdown_client_fd(), r_net_listen_on_address(), r_net_listen_on_wildcards(), r_proto_activate_policy(), r_proto_deactivate_policy(), r_proto_policy_complete(), r_proto_start_write(), r_proto_start_write_checked(), r_store_init(), r_store_read_stable_point(), r_store_write_stable_point(), SyncHandleSlice(), SyncInit(), SyncInterestArrived(), SyncNotifyContent(), SyncRegisterInterest(), SyncRegisterInterests(), SyncRemoteFetchResponse(), SyncRootAdviseResponse(), SyncSendRootAdviseInterest(), SyncShutdown(), SyncStartCompareAction(), SyncStartContentFetch(), SyncStartHeartbeat(), SyncStartNodeFetch(), SyncStartSliceEnum(), SyncUpdateRoot(), and UpdateAction().
#define CCNL_NONE 0 |
Levels for deciding whether or not to log.
No logging at all
Definition at line 31 of file ccnr_msg.h.
Referenced by ccnr_msg_level_from_string().
#define CCNL_SEVERE 3 |
Severe errors.
Definition at line 32 of file ccnr_msg.h.
Referenced by ccnr_msg_level_from_string(), SyncHandleSlice(), SyncInterestArrived(), SyncNoteFailed(), SyncNotifyContent(), SyncRegisterInterest(), SyncRemoteFetchResponse(), SyncRootAdviseResponse(), SyncStartContentFetch(), SyncStartHeartbeat(), SyncStartNodeFetch(), SyncStartSliceEnum(), and SyncUpdateRoot().
#define CCNL_WARNING 7 |
Something might be wrong.
Definition at line 34 of file ccnr_msg.h.
Referenced by abortCompare(), ccnr_init_repo_keystore(), ccnr_msg_level_from_string(), CompareAction(), HeartbeatAction(), r_init_config_msg(), r_init_debug_getenv(), r_io_send(), r_store_init(), r_sync_enumerate(), SyncHandleSlice(), SyncNotifyContent(), SyncRootAdviseResponse(), and SyncStartHeartbeat().
void ccnr_debug_ccnb | ( | struct ccnr_handle * | h, | |
int | lineno, | |||
const char * | msg, | |||
struct fdholder * | fdholder, | |||
const unsigned char * | ccnb, | |||
size_t | ccnb_size | |||
) |
Produce a ccnr debug trace entry.
Output is produced by calling ccnr_msg.
h | the ccnr handle | |
lineno | caller's source line number (usually __LINE__) | |
msg | a short text tag to identify the entry | |
fdholder | handle of associated fdholder; may be NULL | |
ccnb | points to ccnb-encoded Interest or ContentObject | |
ccnb_size | is in bytes |
Definition at line 129 of file ccnr_msg.c.
Referenced by ccnr_answer_req(), load_policy(), r_match_consume_matching_interests(), r_proto_answer_req(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_continue_enumeration(), r_proto_dump_enums(), r_proto_expect_content(), r_proto_initiate_key_fetch(), r_proto_policy_complete(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_store_find_first_match_candidate(), r_store_lookup(), r_store_next_child_at_level(), r_sync_enumerate(), and reap_enumerations().
void ccnr_msg | ( | struct ccnr_handle * | h, | |
const char * | fmt, | |||
... | ||||
) |
Produce ccnr debug output.
Output is produced via h->logger under the control of h->debug; prepends decimal timestamp and process identification. Caller should not supply newlines.
h | the ccnr handle | |
fmt | printf-like format string |
Definition at line 86 of file ccnr_msg.c.
Referenced by abortCompare(), ccnr_close_fd(), ccnr_collect_stats(), ccnr_debug_ccnb(), ccnr_debug_content(), ccnr_direct_client_refresh(), ccnr_init_repo_keystore(), ccnr_stats_http_set_debug(), cleanup_se(), CompareAction(), content_sender(), establish_min_send_bufsize(), findAndDeleteRoot(), handle_send_error(), HeartbeatAction(), load_policy(), main(), merge_files(), newNodeCommon(), nodeFromNodes(), noteRemoteHash(), process_input_buffer(), process_input_message(), r_dispatch_process_input(), r_dispatch_run(), r_init_config_msg(), r_init_confval(), r_init_create(), r_init_debug_getenv(), r_init_fail(), r_init_map_and_process_file(), r_init_parse_config(), r_io_accept_connection(), r_io_open_repo_data_file(), r_io_prepare_poll_fds(), r_io_record_fd(), r_io_send(), r_io_shutdown_client_fd(), r_link_do_deferred_write(), r_net_listen_on_address(), r_net_listen_on_wildcards(), r_net_setsockopt_v6only(), r_proto_activate_policy(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_check_exclude(), r_proto_continue_enumeration(), r_proto_deactivate_policy(), r_proto_dump_enums(), r_proto_expect_content(), r_proto_policy_complete(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_sendq_face_send_queue_insert(), r_store_content_base(), r_store_content_from_accession(), r_store_content_read(), r_store_fatal(), r_store_final(), r_store_forget_content(), r_store_index_cleaner(), r_store_index_needs_cleaning(), r_store_init(), r_store_read_stable_point(), r_store_reindexing(), r_store_set_flatname(), r_store_trim(), r_store_write_stable_point(), r_sync_enumerate(), r_sync_local_store(), r_sync_notify_content(), r_sync_upcall_store(), start_ccnr(), SyncHandleSlice(), SyncInit(), SyncNoteFailed(), SyncNoteSimple(), SyncNoteSimple2(), SyncNoteSimple3(), SyncNoteUri(), SyncNoteUriBase(), SyncNotifyContent(), SyncRegisterInterests(), SyncRootLookupName(), SyncShutdown(), SyncStartCompareAction(), SyncStartHeartbeat(), SyncUpdateRoot(), and UpdateAction().
int ccnr_msg_level_from_string | ( | const char * | s | ) |
const char* ccnr_usage_message |