From 38f42a0fa204e81f2f23357f72c91d6f09654546 Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Mon, 15 Apr 2013 22:01:41 +0800
Subject: [PATCH] Fix error message for requirenext change

---
 process-packet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/process-packet.c b/process-packet.c
index 3ac0c1b1..ecc48633 100644
--- a/process-packet.c
+++ b/process-packet.c
@@ -77,8 +77,8 @@ void process_packet() {
 	if (ses.requirenext[0] != 0) {
 		if (ses.requirenext[0] != type
 				&& (ses.requirenext[1] == 0 || ses.requirenext[1] != type)) {
-			dropbear_exit("Unexpected packet type %d, expected %d", type,
-					ses.requirenext);
+			dropbear_exit("Unexpected packet type %d, expected [%d,%d]", type,
+					ses.requirenext[0], ses.requirenext[1]);
 		} else {
 			/* Got what we expected */
 			ses.requirenext[0] = 0;
-- 
GitLab