From cd700aaf6e3d8f6e9eb657a242d4e5c06bacfa4d Mon Sep 17 00:00:00 2001 From: Ronny Meeus Date: Tue, 20 May 2014 20:56:59 +0800 Subject: [PATCH] Print errno information in write_packet --- packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packet.c b/packet.c index 5f38f08..dc76639 100644 --- a/packet.c +++ b/packet.c @@ -90,7 +90,7 @@ void write_packet() { TRACE2(("leave write_packet: EINTR")) return; } else { - dropbear_exit("Error writing"); + dropbear_exit("Error writing: %s", strerror(errno)); } } @@ -131,7 +131,7 @@ void write_packet() { TRACE2(("leave writepacket: EINTR")) return; } else { - dropbear_exit("Error writing"); + dropbear_exit("Error writing: %s", strerror(errno)); } } all_ignore = (packet_type == SSH_MSG_IGNORE);