mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 17:32:11 +03:00
newt: print errors to stderr
This commit is contained in:
parent
27a9dbe1c0
commit
4cfaf08348
@ -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
|
// very likely to be a bad write, we can't jam anything this big
|
||||||
//
|
//
|
||||||
if ( 0xFFFFFFFFULL < nel_d ) {
|
if ( 0xFFFFFFFFULL < nel_d ) {
|
||||||
u3l_log("newt: %d warn: large read %" PRIu64 "\r\n",
|
fprintf(stderr, "newt: %d warn: large read %" PRIu64 "\r\n",
|
||||||
getpid(),
|
getpid(),
|
||||||
nel_d);
|
nel_d);
|
||||||
}
|
}
|
||||||
|
|
||||||
mot_u->len_d -= 8ULL;
|
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);
|
c3_free(req_u);
|
||||||
|
|
||||||
if ( 0 != sas_i ) {
|
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));
|
moj_u->bal_f(vod_p, uv_strerror(sas_i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user