diff --git a/apps/backend/clixon_backend_handle.c b/apps/backend/clixon_backend_handle.c index 5a183b2c..aecea5ae 100644 --- a/apps/backend/clixon_backend_handle.c +++ b/apps/backend/clixon_backend_handle.c @@ -141,7 +141,7 @@ backend_notify(clicon_handle h, if (strlen(su->su_filter)==0 || fnmatch(su->su_filter, event, 0) == 0){ if (send_msg_notify(ce->ce_s, level, event) < 0){ if (errno == ECONNRESET){ - clicon_log(LOG_WARNING, "client %s reset", ce->ce_nr); + clicon_log(LOG_WARNING, "client %d reset", ce->ce_nr); #if 0 /* We should remove here but removal is not possible from a client since backend_client is not linked. @@ -219,7 +219,7 @@ backend_notify_xml(clicon_handle h, } if (send_msg_notify(ce->ce_s, level, cbuf_get(cb)) < 0){ if (errno == ECONNRESET){ - clicon_log(LOG_WARNING, "client %s reset", ce->ce_nr); + clicon_log(LOG_WARNING, "client %d reset", ce->ce_nr); #if 0 /* We should remove here but removal is not possible from a client since backend_client is not linked. diff --git a/apps/cli/cli_common.c b/apps/cli/cli_common.c index 90e06c7c..b655f40e 100644 --- a/apps/cli/cli_common.c +++ b/apps/cli/cli_common.c @@ -110,7 +110,8 @@ exit_candidate_db(clicon_handle h) * @param[in] filter Filter. For xml notification ie xpath: .[name=kalle] * @param[in] status 0 for stop, 1 to start * @param[in] fn Callback function called when notification occurs - * @param[in] arg Argumnent to function + * @param[in] arg Argument to function note + * Note this calls cligen_regfd which may callback on cli command interpretator */ int cli_notification_register(clicon_handle h,