diff --git a/pkg/urbit/include/vere/vere.h b/pkg/urbit/include/vere/vere.h index 2f84ac50b9..2059e04594 100644 --- a/pkg/urbit/include/vere/vere.h +++ b/pkg/urbit/include/vere/vere.h @@ -1211,6 +1211,11 @@ void 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. */ void diff --git a/pkg/urbit/vere/newt.c b/pkg/urbit/vere/newt.c index 9af6fcae74..e7cfe2be50 100644 --- a/pkg/urbit/vere/newt.c +++ b/pkg/urbit/vere/newt.c @@ -365,6 +365,24 @@ u3_newt_read(u3_moat* mot_u) _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 */ typedef struct _n_req { diff --git a/pkg/urbit/vere/pier.c b/pkg/urbit/vere/pier.c index 1ac8eae0ba..22dab80960 100644 --- a/pkg/urbit/vere/pier.c +++ b/pkg/urbit/vere/pier.c @@ -1028,8 +1028,7 @@ u3_pier_info(u3_pier* pir_u) { u3_work* wok_u = pir_u->wok_u; - u3l_log(" effects:\n"); - u3l_log(" released: %" PRIu64 "\n", wok_u->fec_u.rel_d); + u3l_log(" effects: released=%" PRIu64 "\n", wok_u->fec_u.rel_d); if ( wok_u->fec_u.ext_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 ) { - 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 ) {