vere: tweaks pier/lord info printfs

This commit is contained in:
Joe Bryan 2020-06-26 10:25:24 -07:00
parent 0f54d25d8e
commit 57967b35fb
3 changed files with 25 additions and 3 deletions

View File

@ -1211,6 +1211,11 @@
void void
u3_newt_read(u3_moat* mot_u); u3_newt_read(u3_moat* mot_u);
/* u3_newt_moat_info(); print status info.
*/
void
u3_newt_moat_info(u3_moat* mot_u);
/* u3_newt_moat_stop(); newt stop/close input stream. /* u3_newt_moat_stop(); newt stop/close input stream.
*/ */
void void

View File

@ -365,6 +365,24 @@ u3_newt_read(u3_moat* mot_u)
_newt_read_init(mot_u, _newt_read_cb); _newt_read_init(mot_u, _newt_read_cb);
} }
/* u3_newt_moat_info(); print status info.
*/
void
u3_newt_moat_info(u3_moat* mot_u)
{
u3_meat* met_u = mot_u->ext_u;
c3_w len_w = 0;
while ( met_u ) {
len_w++;
met_u = met_u->nex_u;
}
if ( len_w ) {
u3l_log(" newt: %u inbound ipc messages pending\n", len_w);
}
}
/* n_req: write request for newt /* n_req: write request for newt
*/ */
typedef struct _n_req { typedef struct _n_req {

View File

@ -1028,8 +1028,7 @@ u3_pier_info(u3_pier* pir_u)
{ {
u3_work* wok_u = pir_u->wok_u; u3_work* wok_u = pir_u->wok_u;
u3l_log(" effects:\n"); u3l_log(" effects: released=%" PRIu64 "\n", wok_u->fec_u.rel_d);
u3l_log(" released: %" PRIu64 "\n", wok_u->fec_u.rel_d);
if ( wok_u->fec_u.ext_u ) { if ( wok_u->fec_u.ext_u ) {
if ( wok_u->fec_u.ext_u != wok_u->fec_u.ent_u ) { if ( wok_u->fec_u.ext_u != wok_u->fec_u.ent_u ) {
@ -1044,7 +1043,7 @@ u3_pier_info(u3_pier* pir_u)
} }
if ( wok_u->wal_u ) { if ( wok_u->wal_u ) {
u3l_log("wall: %" PRIu64 "\n", wok_u->wal_u->eve_d); u3l_log(" wall: %" PRIu64 "\n", wok_u->wal_u->eve_d);
} }
if ( wok_u->car_u ) { if ( wok_u->car_u ) {