# HG changeset patch # User Ronny Meeus # Date 1400590619 -28800 # Node ID 3873b39c4de60afa64e2f3b171cdfb0ff8a12ef6 # Parent ac340d3e452e747af5a30eb55ce5cbc989670684 Print errno information in write_packet diff -r ac340d3e452e -r 3873b39c4de6 packet.c --- a/packet.c Wed Apr 23 16:22:50 2014 +0800 +++ b/packet.c Tue May 20 20:56:59 2014 +0800 @@ -90,7 +90,7 @@ TRACE2(("leave write_packet: EINTR")) return; } else { - dropbear_exit("Error writing"); + dropbear_exit("Error writing: %s", strerror(errno)); } } @@ -131,7 +131,7 @@ TRACE2(("leave writepacket: EINTR")) return; } else { - dropbear_exit("Error writing"); + dropbear_exit("Error writing: %s", strerror(errno)); } } all_ignore = (packet_type == SSH_MSG_IGNORE);