File crash-crosscrash-hint.diff of Package crash

From: Bernhard Walle <bwalle@suse.de>
Subject: [PATCH] Add crosscrash hint
Patch-mainline: never
References: FATE #302896

This patch gives the user a hint to try the 'crosscrash' tool when he
tries to open a dump from a different architecture.


Signed-off-by: Bernhard Walle <bwalle@suse.de>

---
 tools.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- a/tools.c
+++ b/tools.c
@@ -4680,7 +4680,12 @@ machine_type_mismatch(char *file, char *
 	fprintf(fp, "         crash utility: %s\n", MACHINE_TYPE);
 	fprintf(fp, "         %s: %s%s%s\n\n", file, e_machine,
 		alt ? " or " : "", alt ? alt : "");
-		
+
+	fprintf(fp, "\n");
+	fprintf(fp, "NOTE: You might want to try the 'crosscrash' tool which is\n");
+	fprintf(fp, "      distributed in the 'crosscrash' package on SUSE Linux.\n");
+	fprintf(fp, "\n");
+
 	return TRUE;
 }
 void
openSUSE Build Service is sponsored by