[Crash-utility] [PATCH] s390dbf: Use correct file descriptor for command output

Michael Holzheu holzheu at linux.vnet.ibm.com
Mon Jun 21 16:24:32 UTC 2010


Hi Dave,

Currently for the s390dbf command we use stdout as file descriptor. This
has the drawback that it is not possible to grep through the output of
the command.

To solve the problem with this patch we use "fp" instead of "stdout".

Michael

PS: I am no longer able to download the crash tarball from your web
site:
http://people.redhat.com/anderson/crash-5.0.4.tar.gz
---
 s390dbf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/s390dbf.c
+++ b/s390dbf.c
@@ -1325,7 +1325,7 @@ void cmd_s390dbf()
 	int i,c;
 
 	command_t cmd = {
-		.ofp = stdout,
+		.ofp = fp,
 		.efp = stderr,
 		.cmdstr = "s390dbf",
 		.command = "s390dbf",

-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-5.0.4-s390dbf-fp.patch
Type: text/x-patch
Size: 278 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20100621/98391759/attachment.bin>


More information about the Crash-utility mailing list