From 4cfaf083487c1d8e2bff887dfd978216c775faf6 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Thu, 4 Jun 2020 11:09:50 -0700 Subject: [PATCH] newt: print errors to stderr --- pkg/urbit/vere/newt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/urbit/vere/newt.c b/pkg/urbit/vere/newt.c index c60083a443..8340c90330 100644 --- a/pkg/urbit/vere/newt.c +++ b/pkg/urbit/vere/newt.c @@ -87,9 +87,9 @@ _newt_gain_mess(u3_moat* mot_u) // very likely to be a bad write, we can't jam anything this big // if ( 0xFFFFFFFFULL < nel_d ) { - u3l_log("newt: %d warn: large read %" PRIu64 "\r\n", - getpid(), - nel_d); + fprintf(stderr, "newt: %d warn: large read %" PRIu64 "\r\n", + getpid(), + nel_d); } mot_u->len_d -= 8ULL; @@ -316,7 +316,7 @@ _newt_write_cb(uv_write_t* wri_u, c3_i sas_i) c3_free(req_u); if ( 0 != sas_i ) { - u3l_log("newt: bad write %d\r\n", sas_i); + fprintf(stderr, "newt: bad write %d\r\n", sas_i); moj_u->bal_f(vod_p, uv_strerror(sas_i)); } }