Преглед изворни кода

[POWERPC] boot: More verbose gunzip error message

Change the error message in gunzip_exactly to be more verbose.

Besides the identifier being unrelated to the current function name,
the user had no indication if the corruption was near the beginning
or the end.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Milton Miller пре 18 година
родитељ
комит
3c5f616254
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      arch/powerpc/boot/gunzip_util.c

+ 2 - 1
arch/powerpc/boot/gunzip_util.c

@@ -142,7 +142,8 @@ void gunzip_exactly(struct gunzip_state *state, void *dst, int dstlen)
 
 
 	len  = gunzip_partial(state, dst, dstlen);
 	len  = gunzip_partial(state, dst, dstlen);
 	if (len < dstlen)
 	if (len < dstlen)
-		fatal("gunzip_block: ran out of data\n\r");
+		fatal("\n\rgunzip_exactly: ran out of data!"
+				" Wanted %d, got %d.\n\r", dstlen, len);
 }
 }
 
 
 /**
 /**