Compare commits
1 Commits
e643cd4944
...
cd7d357a6f
Author | SHA1 | Date | |
---|---|---|---|
|
cd7d357a6f |
@ -1331,9 +1331,10 @@ void adm_print_connection(struct link_client *ic, struct link *lnk,
|
|||||||
bufpos = buf;
|
bufpos = buf;
|
||||||
|
|
||||||
list_iterator_t itocs;
|
list_iterator_t itocs;
|
||||||
|
int i = 0;
|
||||||
for (list_it_init(&lnk->on_connect_send, &itocs);
|
for (list_it_init(&lnk->on_connect_send, &itocs);
|
||||||
list_it_item(&itocs);) {
|
list_it_item(&itocs) && i < 10; i++) {
|
||||||
bufpos = bip_strcatf_fit(&remaining, bufpos, "%s",
|
bufpos = bip_strcatf_fit(&remaining, bufpos, " on_connect_send: %s",
|
||||||
(char *)list_it_item(&itocs));
|
(char *)list_it_item(&itocs));
|
||||||
if (!bufpos) {
|
if (!bufpos) {
|
||||||
// if oversized, print and reset
|
// if oversized, print and reset
|
||||||
@ -1341,6 +1342,7 @@ void adm_print_connection(struct link_client *ic, struct link *lnk,
|
|||||||
bip_notify(ic, "%s", buf);
|
bip_notify(ic, "%s", buf);
|
||||||
remaining = LINE_SIZE_LIM;
|
remaining = LINE_SIZE_LIM;
|
||||||
bufpos = buf;
|
bufpos = buf;
|
||||||
|
list_it_next(&itocs);
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
// if ok, go to next item
|
// if ok, go to next item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user